1 post:
2 operationId: PostCustomerGroupsIdCustomers
3 summary: Manage Customers of a Customer Group
4 x-sidebar-summary: Manage Customers
5 description: Manage the customers of a group to add or remove them from the group.
6 x-authenticated: true
7 parameters:
8 - name: id
9 in: path
10 description: The customer group's ID.
11 required: true
12 schema:
13 type: string
14 - name: fields
15 in: query
16 description: >-
17 Comma-separated fields that should be included in the returned data. if
18 a field is prefixed with `+` it will be added to the default fields,
19 using `-` will remove it from the default fields. without prefix it will
20 replace the entire default fields.
21 required: false
22 schema:
23 type: string
24 title: fields
25 description: >-
26 Comma-separated fields that should be included in the returned data.
27 if a field is prefixed with `+` it will be added to the default
28 fields, using `-` will remove it from the default fields. without
29 prefix it will replace the entire default fields.
30 externalDocs:
31 url: '#select-fields-and-relations'
32 security:
33 - api_token: []
34 - cookie_auth: []
35 - jwt_token: []
36 requestBody:
37 content:
38 application/json:
39 schema:
40 $ref: ../components/schemas/AdminBatchLink.yaml
41 x-codeSamples:
42 - lang: JavaScript
43 label: JS SDK
44 source:
45 $ref: >-
46 ../code_samples/JavaScript/admin_customer-groups_{id}_customers/post.js
47 - lang: Shell
48 label: cURL
49 source:
50 $ref: ../code_samples/Shell/admin_customer-groups_{id}_customers/post.sh
51 tags:
52 - Customer Groups
53 responses:
54 '200':
55 description: OK
56 content:
57 application/json:
58 schema:
59 $ref: ../components/schemas/AdminCustomerGroupResponse.yaml
60 '400':
61 $ref: ../components/responses/400_error.yaml
62 '401':
63 $ref: ../components/responses/unauthorized.yaml
64 '404':
65 $ref: ../components/responses/not_found_error.yaml
66 '409':
67 $ref: ../components/responses/invalid_state_error.yaml
68 '422':
69 $ref: ../components/responses/invalid_request_error.yaml
70 '500':
71 $ref: ../components/responses/500_error.yaml
72 x-workflow: linkCustomersToCustomerGroupWorkflow
73 x-events: []