Asset APIs
POSTUnlink Assets
Unlink one or more assets from a given `parent_code` and `channel`.
Requests go to the live API through streamoid.com and act on your real data.
Unlink assets from a
parent_code and channel. The asset itself is kept, only its link to that product and channel is removed. Every item needs store_uuid, parent_code, channel and asset_id, and the channel must be enabled on the store. Items are handled independently: an item for a store the caller cannot access, or for a channel the store has not enabled, is reported in error_info and counted in failed while the others are still unlinked. A request carries at most 100 items and 10 MiB, otherwise it fails with 413.Authorization
AuthorizationstringrequiredheaderBearer token,
Bearer <token>. Create one under Tokens in your workspace.Headers
X-Request-IdstringOptional trace ID
Body
application/json required
An array of objects. Each item:
store_uuidstringrequiredExample:
699ec31355208b213e56059aparent_codestringrequiredParent code the asset is linked to. It cannot be blank.
Example:
SKU001channelstringrequiredChannel the link belongs to. It must be enabled on the store.
Example:
SMPasset_idstringrequiredIdentifier of the asset to unlink, as returned by the assets listing. It cannot be blank.
Responses
200Assets unlinked
statusobjectFields
codeinteger0 = success, -1 = error
Example:
0messagestringExample:
SUCCESSrequest_idstringExample:
8c8b2b7e-23d7-4c2a-91b0-2a7c4dfbb312dataobjectFields
unlinkedintegerExample:
2failedintegerExample:
0error_infoobject[]One entry per item that was not unlinked.
Item fields
asset_idstringparent_codestringExample:
SKU001reasonstringstore access denied for a store the caller cannot access, the message of a channel the store has not enabled (for example Ontology 'X' not found in store channels), or the status the assets service gave the item (not_found when it gave none).Example:
not_found400Validation error
statusstringdefault: "error"The status of the request, typically 'error'
detailstringrequiredA description of the error
401Unauthorized – Bearer token missing or invalid
statusobjectFields
codeintegerExample:
-1messagestringExample:
Unauthorized – invalid or missing Bearer token413More than 100 items in the request, or a request body over 10 MiB
statusstringdefault: "error"The status of the request, typically 'error'
detailstringrequiredA description of the error
422Validation error: a malformed body, a blank `parent_code`, `channel` or `asset_id`, or the same asset unlinked twice for one store, `parent_code` and channel
detailobject[]Item fields
locstring | integer[]requireddefault: ["body",""]msgstringrequireddefault: "Field Required"typestringrequireddefault: "missing"500Internal server error
statusobjectFields
codeintegerExample:
-1messagestringExample:
Internal server error. Please contact support@catalogix.ai502Downstream service unavailable
statusstringdefault: "error"The status of the request, typically 'error'
detailstringrequiredA description of the error
Something missing or unclear? Write to support@streamoid.com.