1 post:
2 operationId: PostFulfillmentSetsIdServiceZones
3 summary: Add a Service Zone to a Fulfillment Set
4 x-sidebar-summary: Add Service Zone
5 description: Add a service zone to a fulfillment set.
6 x-authenticated: true
7 parameters:
8 - name: id
9 in: path
10 description: The fulfillment set'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/AdminCreateFulfillmentSetServiceZone.yaml
41 x-codeSamples:
42 - lang: JavaScript
43 label: JS SDK
44 source:
45 $ref: >-
46 ../code_samples/JavaScript/admin_fulfillment-sets_{id}_service-zones/post.js
47 - lang: Shell
48 label: cURL
49 source:
50 $ref: >-
51 ../code_samples/Shell/admin_fulfillment-sets_{id}_service-zones/post.sh
52 tags:
53 - Fulfillment Sets
54 responses:
55 '200':
56 description: OK
57 content:
58 application/json:
59 schema:
60 $ref: ../components/schemas/AdminFulfillmentSetResponse.yaml
61 '400':
62 $ref: ../components/responses/400_error.yaml
63 '401':
64 $ref: ../components/responses/unauthorized.yaml
65 '404':
66 $ref: ../components/responses/not_found_error.yaml
67 '409':
68 $ref: ../components/responses/invalid_state_error.yaml
69 '422':
70 $ref: ../components/responses/invalid_request_error.yaml
71 '500':
72 $ref: ../components/responses/500_error.yaml
73 x-workflow: createServiceZonesWorkflow
74 x-events: []