-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated api-reference from documentation release
- Loading branch information
Auto Mation
committed
Jul 10, 2024
1 parent
886e775
commit b7d925a
Showing
340 changed files
with
3,410 additions
and
383 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/BusinessUnit/BusinessUnitChangeApprovalRuleModeAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"action": "changeApprovalRuleMode", | ||
"approvalRuleMode": "Explicit" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"action": "addLineItem", | ||
"productId": "{{product-id}}", | ||
"variantId": 2, | ||
"quantity": 1, | ||
"supplyChannel": { | ||
"typeId": "channel", | ||
"id": "{{channel-id}}" | ||
}, | ||
"distributionChannel": { | ||
"typeId": "channel", | ||
"id": "{{channel-id}}" | ||
}, | ||
"shippingDetails": { | ||
"targets": [ | ||
{ | ||
"addressKey": "AddressKeyStringFromAddress", | ||
"quantity": 2 | ||
} | ||
] | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
api-specs/api/examples/CustomerSearch/CustomerPagedSearchResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"results": [ | ||
{ | ||
"id": "e41337a0-ea96-4ddc-a9a4-d267976f21e0", | ||
"relevance": 0.9264881 | ||
}, | ||
{ | ||
"id": "05cd5998-015c-4232-8943-ff8a1880bcbc", | ||
"relevance": 0.6989829 | ||
}, | ||
{ | ||
"id": "09c3c5a2-6569-49dd-b021-af5de4cf4b02", | ||
"relevance": 0.6989829 | ||
} | ||
], | ||
"limit": 100, | ||
"offset": 0, | ||
"total": 3 | ||
} |
11 changes: 11 additions & 0 deletions
11
api-specs/api/examples/CustomerSearch/CustomerSearchIndexingStatusResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"status": "Indexing", | ||
"states": { | ||
"indexed": 43242, | ||
"failed": 0, | ||
"estimatedTotal": 100000 | ||
}, | ||
"startedAt": "2023-08-15T12:56:07.89Z", | ||
"retryCount": 2, | ||
"lastModifiedAt": "2023-08-15T12:56:07.89Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
api-specs/api/examples/CustomerSearch/CustomerSearchRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"query": { | ||
"fullText": { | ||
"field": "all", | ||
"value": "john" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
api-specs/api/examples/ProductTailoring/ProductTailoringAddAssetAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"action": "addAsset", | ||
"variantId": 1, | ||
"asset": { | ||
"sources": [ | ||
{ | ||
"uri": "//asset.mp4" | ||
} | ||
], | ||
"name": { | ||
"de": "FirstAssetDE", | ||
"en": "FirstassetEN" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
api-specs/api/examples/ProductTailoring/ProductTailoringAddExternalImageAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"action": "addExternalImage", | ||
"variantId": 1, | ||
"image": { | ||
"url": "//myimage.jpg", | ||
"dimensions": { | ||
"w": 1400, | ||
"h": 1400 | ||
}, | ||
"label": "myImage" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringAddVariantAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"action": "addVariant", | ||
"id": 2, | ||
"sku": "VariantSKU" | ||
} |
9 changes: 9 additions & 0 deletions
9
api-specs/api/examples/ProductTailoring/ProductTailoringChangeAssetNameAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"action": "changeAssetName", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"name": { | ||
"de": "Mein Asset", | ||
"en": "My asset" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringChangeAssetOrderAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"action": "changeAssetOrder", | ||
"variantId": 1, | ||
"assetOrder": ["{{assetId1}}", "{{assetId2}}"] | ||
} |
6 changes: 6 additions & 0 deletions
6
api-specs/api/examples/ProductTailoring/ProductTailoringMoveImageToPositionAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"action": "moveImageToPosition", | ||
"variantId": 1, | ||
"imageUrl": "//myimage2.jpg", | ||
"position": 1 | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringRemoveAssetAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"action": "removeAsset", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}" | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringRemoveImageAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"action": "removeImage", | ||
"variantId": 1, | ||
"imageUrl": "//myimage2.jpg" | ||
} |
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/ProductTailoring/ProductTailoringRemoveVariantAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"action": "removeVariant", | ||
"id": 2 | ||
} |
7 changes: 7 additions & 0 deletions
7
api-specs/api/examples/ProductTailoring/ProductTailoringSetAssetCustomFieldAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"action": "setAssetCustomField", | ||
"assetId": "{{assetId}}", | ||
"variantId": 1, | ||
"name": "ExampleStringTypeField", | ||
"value": "TextString" | ||
} |
12 changes: 12 additions & 0 deletions
12
api-specs/api/examples/ProductTailoring/ProductTailoringSetAssetCustomTypeAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"action": "setAssetCustomType", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"type": { | ||
"id": "{{type-id}}", | ||
"typeId": "type" | ||
}, | ||
"fields": { | ||
"exampleStringTypeField": "TextString" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
api-specs/api/examples/ProductTailoring/ProductTailoringSetAssetDescriptionAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"action": "setAssetDescription", | ||
"assetId": "{{assetId}}", | ||
"variantId": 1, | ||
"description": { | ||
"de": "Dies ist eine Asset-Beschreibung", | ||
"en": "This is an asset description" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
api-specs/api/examples/ProductTailoring/ProductTailoringSetAssetKeyAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"action": "setAssetKey", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"assetKey": "assetKeyString" | ||
} |
11 changes: 11 additions & 0 deletions
11
api-specs/api/examples/ProductTailoring/ProductTailoringSetAssetSourcesAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"action": "setAssetSources", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"sources": [ | ||
{ | ||
"uri": "https://www.commercetools.de/ct-logo.svg", | ||
"key": "vector" | ||
} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
api-specs/api/examples/ProductTailoring/ProductTailoringSetAssetTagsAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"action": "setAssetTags", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"tags": ["commercetools", "awesome"] | ||
} |
20 changes: 20 additions & 0 deletions
20
api-specs/api/examples/ProductTailoring/ProductTailoringSetExternalImagesAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"action": "setImages", | ||
"variantId": 1, | ||
"images": [ | ||
{ | ||
"url": "//myimage.jpg", | ||
"dimensions": { | ||
"w": 100, | ||
"h": 100 | ||
} | ||
}, | ||
{ | ||
"url": "//myimage2.jpg", | ||
"dimensions": { | ||
"w": 100, | ||
"h": 100 | ||
} | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
api-specs/api/examples/ProductTailoring/ProductTailoringSetImageLabelAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"action": "setImageLabel", | ||
"variantId": 2, | ||
"imageUrl": "//image.png", | ||
"label": "labelString", | ||
"staged": true | ||
} |
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/Project/ProjectChangeCustomerSearchStatusAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"action": "changeCustomerSearchStatus", | ||
"status": "Activated" | ||
} |
4 changes: 2 additions & 2 deletions
4
api-specs/api/examples/ShoppingList/ShoppingListSetAnonymousIdAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"action": "setAnonymousId", | ||
"anonymousId": "ThisIsMyID" | ||
} | ||
"anonymousId": "anonymousId" | ||
} |
4 changes: 2 additions & 2 deletions
4
api-specs/api/examples/TaxCategory/TaxCategoryChangeNameAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"action": "changeName", | ||
"name": "name" | ||
} | ||
"name": "New Name" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.