Catalog - Products
Get Products Category Assignments
GET /stores/{store_hash}/v3/catalog/products/category-assignments
Request
Returns a list of products category assignments.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
- page in query - integer
Specifies the page number in a limited (paginated) list of products.
- limit in query with default of 50 - integer
Controls the number of items per page in a limited (paginated) list of products.
- product_id:in in query - array
Pass a comma-separated list to filter by one or more product IDs.
- category_id:in in query - array
Pass a comma-separated list to filter by one or more category IDs.
example
Response
Collection of category assignments.
Body
dataarray[]
metaobject
example
Create Products Category Assignments.
PUT /stores/{store_hash}/v3/catalog/products/category-assignments
Request
Creates products category assignments.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - stringrequired
The MIME type of the request body.
Body
product_idinteger
category_idinteger
example
Response
Updated
Delete Products Category Assignments
DELETE /stores/{store_hash}/v3/catalog/products/category-assignments
Request
Deletes products category assignments. A filter must be supplied.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
- product_id:in in query - array
Pass a comma-separated list to filter by one or more product IDs.
- category_id:in in query - array
Pass a comma-separated list to filter by one or more category IDs.
example
Response
Deleted