Update a product–category link
Fully updates a product–category link.
product and category are both required. If the new (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 create or full update request.
The identifier of the product to link.
The identifier of the category node to link.
Whether this is the product's main category. Optional.
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.
PUT /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: 43
{
"product": 100,
"category": 5,
"is_main": true
}{
"pk": 42,
"product": 100,
"category": 5,
"is_main": true
}Last updated
Was this helpful?

