Menu
Create a new bulk request
Create a new bulk request.
POST
/variants/stocks/bulk-requestsUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create a new bulk request action (under Stocks).
- Fill in the fields below, then reference the result from later steps as
{{createANewBulkRequest.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"callbacks": {
"requestUrl": "https://example.com/api/internal/callback/request",
"operationUrl": "https://client.aboutyou.cloud/api/internal/callback/operation",
"requestStatus": "complete",
"bulkRequestKey": 2241
},
"operations": [
{
"key": "create-product",
"url": "/products",
"method": "POST",
"headers": {
"X-Merchant-Key": 123
},
"body": {
"referenceKey": "M0001-black",
"name": {
"de_DE": "Blaues Shirt",
"en_GB": "Blue Shirt"
},
"state": "draft",
"master": {
"referenceKey": "M0001",
"categories": {
"paths": [
[
"Fashion",
"Men",
"Shirts"
]
]
}
}
}
}
]
}
Response
Returns 201 with an object. Read it in later steps with {{createANewBulkRequest.response.data.<field>}}.
{
"key": 123
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?