Partially update a product–category link
Updates one or more fields of a product–category link. Only the fields included in the request body are changed.
If the resulting (product, category) pair already exists on another link, the request is rejected with 400 Bad Request.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product–category link.
The body of a product–category link partial update request. Only the fields included are changed.
The identifier of the product to link.
The identifier of the category node to link.
Whether this is the product's main category.
The updated product–category link.
A product–category link.
The unique identifier of the link.
The identifier of the linked product.
The identifier of the linked category node.
Whether this is the product's main category. Defaults to null (unset).
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested product–category link does not exist.
PATCH /api/v1/remote/1/product_category/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"is_main": false
}{
"pk": 42,
"product": 100,
"category": 5,
"is_main": true
}Last updated
Was this helpful?

