|
1
|
post: |
|
2
|
operationId: PostOrderEdits |
|
3
|
summary: Create Order Edit |
|
4
|
description: Create an order edit. |
|
5
|
x-authenticated: true |
|
6
|
security: |
|
7
|
- api_token: [] |
|
8
|
- cookie_auth: [] |
|
9
|
- jwt_token: [] |
|
10
|
requestBody: |
|
11
|
content: |
|
12
|
application/json: |
|
13
|
schema: |
|
14
|
$ref: ../components/schemas/AdminPostOrderEditsReqSchema.yaml |
|
15
|
x-codeSamples: |
|
16
|
- lang: JavaScript |
|
17
|
label: JS SDK |
|
18
|
source: |
|
19
|
$ref: ../code_samples/JavaScript/admin_order-edits/post.js |
|
20
|
- lang: Shell |
|
21
|
label: cURL |
|
22
|
source: |
|
23
|
$ref: ../code_samples/Shell/admin_order-edits/post.sh |
|
24
|
tags: |
|
25
|
- Order Edits |
|
26
|
responses: |
|
27
|
'200': |
|
28
|
description: OK |
|
29
|
content: |
|
30
|
application/json: |
|
31
|
schema: |
|
32
|
$ref: ../components/schemas/AdminOrderEditResponse.yaml |
|
33
|
'400': |
|
34
|
$ref: ../components/responses/400_error.yaml |
|
35
|
'401': |
|
36
|
$ref: ../components/responses/unauthorized.yaml |
|
37
|
'404': |
|
38
|
$ref: ../components/responses/not_found_error.yaml |
|
39
|
'409': |
|
40
|
$ref: ../components/responses/invalid_state_error.yaml |
|
41
|
'422': |
|
42
|
$ref: ../components/responses/invalid_request_error.yaml |
|
43
|
'500': |
|
44
|
$ref: ../components/responses/500_error.yaml |
|
45
|
x-workflow: beginOrderEditOrderWorkflow |
|
46
|
x-events: [] |