Skip to content
CatalogChannels

Undo a batch of channel price and stock values

Restores the batch's previous values only where nobody changed them afterwards.

POST/v1/channels/{channelId}/variant-settings/batches/{batchId}/undo
Requires an access token with the channel:update permission.

Path Parameters

channelId*string

Identifier of the sales channel.

batchId*string

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.ecomiq.pe/api/v1/channels/7204558912004329619/variant-settings/batches/7204558912004329434/undo" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>"
{  "batchId": "7204558912004329434",  "restored": 1,  "skipped": 1,  "queued": 1}