-
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
May 23, 2024
1 parent
2f83a52
commit 5effb4d
Showing
1,740 changed files
with
3,342 additions
and
1,754 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"key": "address1", | ||
"title": "Mrs.", | ||
"firstName": "Jane", | ||
"lastName": "Doe", | ||
"streetName": "First Street", | ||
"streetNumber": "12", | ||
"postalCode": "12345", | ||
"city": "Example City", | ||
"country": "NL", | ||
"phone": "+312345678", | ||
"mobile": "+312345679", | ||
"email": "jane.doe@example.com" | ||
} |
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/DiscountCode/DiscountCodeSetKeyAction.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": "setKey", | ||
"key": "new-key" | ||
} |
6 changes: 6 additions & 0 deletions
6
api-specs/api/examples/Order/OrderSetShippingCustomFieldAction.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": "setShippingCustomField", | ||
"shippingKey": "shipping-key-express", | ||
"name": "ExampleStringTypeField", | ||
"value": "TextString" | ||
} |
11 changes: 11 additions & 0 deletions
11
api-specs/api/examples/Order/OrderSetShippingCustomTypeAction.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": "setShippingCustomType", | ||
"shippingKey": "shipping-key-express", | ||
"type": { | ||
"id": "{{type-id}}", | ||
"typeId": "type" | ||
}, | ||
"fields": { | ||
"exampleStringTypeField": "TextString" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
api-specs/api/examples/OrderEdit/StagedOrderSetShippingCustomFieldAction.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": "setShippingCustomField", | ||
"shippingKey": "shipping-key-express", | ||
"name": "ExampleStringTypeField", | ||
"value": "TextString" | ||
} |
11 changes: 11 additions & 0 deletions
11
api-specs/api/examples/OrderEdit/StagedOrderSetShippingCustomTypeAction.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": "setShippingCustomType", | ||
"shippingKey": "shipping-key-express", | ||
"type": { | ||
"id": "{{type-id}}", | ||
"typeId": "type" | ||
}, | ||
"fields": { | ||
"exampleStringTypeField": "TextString" | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
api-specs/api/examples/Product/ProductChangeAssetNameAction.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,8 +1,9 @@ | ||
{ | ||
"action": "changeAssetName", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"name": { | ||
"de": "Mein Asset", | ||
"en": "My asset" | ||
} | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
api-specs/api/examples/Product/ProductChangeAssetOrderAction.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,5 @@ | ||
{ | ||
"action": "changeAssetOrder", | ||
"assetOrder": ["{{assetId1}}","{{assetId2}}"] | ||
} | ||
"variantId": 1, | ||
"assetOrder": ["{{assetId1}}", "{{assetId2}}"] | ||
} |
1 change: 1 addition & 0 deletions
1
api-specs/api/examples/Product/ProductSetAssetCustomFieldAction.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
1 change: 1 addition & 0 deletions
1
api-specs/api/examples/Product/ProductSetAssetCustomTypeAction.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,5 +1,6 @@ | ||
{ | ||
"action": "setAssetCustomType", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"type": { | ||
"id": "{{type-id}}", | ||
|
3 changes: 2 additions & 1 deletion
3
api-specs/api/examples/Product/ProductSetAssetDescriptionAction.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,8 +1,9 @@ | ||
{ | ||
"action": "setAssetDescription", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"description": { | ||
"de": "Dies ist eine Asset-Beschreibung", | ||
"en": "This is an asset description" | ||
} | ||
} | ||
} |
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,5 +1,6 @@ | ||
{ | ||
"action": "setAssetKey", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"assetKey": "assetKeyString" | ||
} | ||
} |
13 changes: 8 additions & 5 deletions
13
api-specs/api/examples/Product/ProductSetAssetSourcesAction.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,8 +1,11 @@ | ||
{ | ||
"action": "setAssetSources", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"sources": [{ | ||
"uri": "https://www.commercetools.de/ct-logo.svg", | ||
"key": "vector" | ||
}] | ||
} | ||
"sources": [ | ||
{ | ||
"uri": "https://www.commercetools.de/ct-logo.svg", | ||
"key": "vector" | ||
} | ||
] | ||
} |
5 changes: 3 additions & 2 deletions
5
api-specs/api/examples/Product/ProductSetAssetTagsAction.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,5 +1,6 @@ | ||
{ | ||
"action": "setAssetTags", | ||
"variantId": 1, | ||
"assetId": "{{assetId}}", | ||
"tags": ["commercetools","awesome"] | ||
} | ||
"tags": ["commercetools", "awesome"] | ||
} |
33 changes: 33 additions & 0 deletions
33
api-specs/api/examples/ProductSearch/product-search-request.example.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,33 @@ | ||
{ | ||
"query": { | ||
"and": [ | ||
{ | ||
"fullText": { | ||
"field": "name", | ||
"language": "en", | ||
"value": "banana" | ||
} | ||
}, | ||
{ | ||
"filter": [ | ||
{ | ||
"exact": { | ||
"field": "variants.attributes.farming", | ||
"fieldType": "text", | ||
"value": "organic" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"sort": [ | ||
{ | ||
"field": "name", | ||
"language": "en", | ||
"order": "desc" | ||
} | ||
], | ||
"limit": 10, | ||
"offset": 0 | ||
} |
39 changes: 39 additions & 0 deletions
39
api-specs/api/examples/ProductSearch/product-search-response.example.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,39 @@ | ||
{ | ||
"total": 148, | ||
"offset": 0, | ||
"limit": 10, | ||
"facets": [ | ||
{ | ||
"name": "countProducts", | ||
"buckets": [ | ||
{ | ||
"key": "white", | ||
"count": 37 | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "countVariants", | ||
"buckets": [ | ||
{ | ||
"key": "white", | ||
"count": 301 | ||
} | ||
] | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"id": "8fde2af0-6a2f-4633-9ba4-83566f769a7f", | ||
"matchingVariants": { | ||
"allMatched": false, | ||
"matchedVariants": [ | ||
{ | ||
"id": 1, | ||
"sku": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
api-specs/api/examples/ProductTailoring/ProductTailoringPublishAction.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 @@ | ||
{ "action": "publish" } |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetDescriptionAction.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": "setDescription", | ||
"description": { "en": "A description" }, | ||
"staged": true | ||
} |
7 changes: 7 additions & 0 deletions
7
api-specs/api/examples/ProductTailoring/ProductTailoringSetMetaAttributesAction.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": "setMetaAttributes", | ||
"metaTitle": { "en": "A Meta Title" }, | ||
"metaDescription": { "en": "A Meta Description" }, | ||
"metaKeywords": { "en": "Meta Keywords" }, | ||
"staged": true | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetMetaDescriptionAction.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": "setMetaDescription", | ||
"metaDescription": { "en": "A Meta Description" }, | ||
"staged": true | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetMetaKeywordsAction.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": "setMetaKeywords", | ||
"metaKeywords": { "en": "Meta Keywords" }, | ||
"staged": true | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetMetaTitleAction.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": "setMetaTitle", | ||
"metaTitle": { "en": "A Meta Title" }, | ||
"staged": true | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetNameAction.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": "setName", | ||
"name": { "en": "A name" }, | ||
"staged": true | ||
} |
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ProductTailoring/ProductTailoringSetSlugAction.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": "setSlug", | ||
"slug": { "en": "a-slug" }, | ||
"staged": true | ||
} |
1 change: 1 addition & 0 deletions
1
api-specs/api/examples/ProductTailoring/ProductTailoringUnpublishAction.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 @@ | ||
{ "action": "unpublish" } |
3 changes: 2 additions & 1 deletion
3
api-specs/api/examples/Project/ProjectChangeProductSearchIndexingEnabledAction.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,5 @@ | ||
{ | ||
"action": "changeProductSearchIndexingEnabled", | ||
"enabled": true | ||
"enabled": true, | ||
"mode": "ProductsSearch" | ||
} |
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.