Category assignments
Get Products Category Assignments
GET https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/category-assignmentsRequest
Returns a list of products category assignments.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- 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 - arrayPass a comma-separated list to filter by one or more product IDs.Type: array[integer]
- category_id:in in query - arrayPass a comma-separated list to filter by one or more category IDs.Type: array[integer]
example
Response
Collection of category assignments.
Body
object | application/json
dataarray[object]
example
Create Products Category Assignments
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/category-assignmentsRequest
Creates products category assignments.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
array | application/json
product_idinteger
category_idinteger
example
Response
Updated
Delete Products Category Assignments
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/category-assignmentsRequest
Deletes products category assignments. A filter must be supplied.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id:in in query - arrayPass a comma-separated list to filter by one or more product IDs.Type: array[integer]
- category_id:in in query - arrayPass a comma-separated list to filter by one or more category IDs.Type: array[integer]
example
Response
Deleted
Did you find what you were looking for?