Attach products to a category
POST
https://api.tamio.com/v2/categories/products/attach/{uuid}
Attaches one or more products to a category. Products are identified by their UUIDs and must be unique within the request. Up to 100 products can be attached per request.
Path Parameters
uuid
string*
UUID of the category to attach products to.
Body Parameters
products
array of string*
Array of product UUIDs to attach. Must contain unique values.
Example
{
"products": [
"d4e5f6a1-b2c3-7890-abcd-ef1234567890"
]
}
Responses
200
Products attached successfully
Products attached successfully
status
integer
category
Category
400
Validation or business logic error. Returned when:
Validation or business logic error. Returned when:
- Missing
uuid(path) orproducts(body) uuidor product UUIDs are not valid UUID formatproductsis not an array, is empty, exceeds 100 items, or contains duplicates- Additional/unknown properties in the request body
Error codes:
| Code | Description |
|---|---|
| 1002 | Category not found |
| 10322 | One or more products not found or do not belong to your account |
status
integer
error
string
error_code
integer
401
Unauthorized – invalid or missing Bearer token
Unauthorized – invalid or missing Bearer token
status
integer
error
string