Replace Channel Category Map
PUT/api/v2/sales-channels/:salesChannel/category-map
Replace the channel's map in full. Every row in the payload with a category is saved; a row with a null category — or a leaf type absent from the payload — loses its mapping. Every category must belong to this channel and be a leaf (products cannot list into a parent category); violations answer 422 keyed on rows.N.sales_channel_category_id.
products:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Send the version from your last read. If the map changed in between, nothing is written and the response is 409 with the current rows and a fresh version — re-apply your changes to those rows and retry. Omit version to skip the check.
Responds with the saved map in the same shape as Get Channel Category Map.
Authentication: Requires Bearer token.
Fields:
rows(required, array, max 2000)rows[].product_type_id(required, integer) — a leaf product typerows[].sales_channel_category_id(nullable, integer) — a leaf category of this channel; null clears the mappingversion(nullable, string, max 64) — the token from the last read
Requires permission: listings.update
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Conflict
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.