Menu
Update a shop country assortment (PATCH)
Update a shop country assortment
PATCH
/shops/{shopKey}/countries/{countryCode}/assortmentUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Update a shop country assortment (PATCH) action (under Shops).
- Fill in the fields below, then reference the result from later steps as
{{updateAShopCountryAssortmentPatch.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"masterCategories": {
"include": {
"add": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
],
"remove": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
]
},
"exclude": {
"add": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
],
"remove": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
]
}
},
"products": {
"include": {
"add": [
0
],
"remove": [
0
]
},
"exclude": {
"add": [
0
],
"remove": [
0
]
}
},
"attributes": [
{
"name": "string",
"include": {
"add": [
"string"
],
"remove": [
"string"
]
},
"exclude": {
"add": [
"string"
],
"remove": [
"string"
]
}
}
],
"merchantReferenceKeys": {
"include": {
"add": [
"string"
],
"remove": [
"string"
]
},
"exclude": {
"add": [
"string"
],
"remove": [
"string"
]
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateAShopCountryAssortmentPatch.response.data.<field>}}.
{
"masterCategories": {
"include": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
],
"exclude": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
]
},
"products": {
"include": [
0
],
"exclude": [
0
]
},
"attributes": [
{
"name": "string",
"include": [
"string"
],
"exclude": [
"string"
]
}
],
"merchantReferenceKeys": {
"include": [
"string"
],
"exclude": [
"string"
]
}
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?