Partially update a product priority
Updates the priority of a record. Only the fields included in the request body are changed; an empty body leaves the record unchanged.
The product cannot be changed: including a product that differs from the record's current one is rejected with 406 Not Acceptable.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product-priority record.
The body of a product-priority partial update request. Every field is optional.
Including a product that differs from the record's current one is rejected. Omitting it keeps the current product.
The ranking weight.
The updated product-priority record.
A product-priority record — the ranking weight of a single product.
The unique identifier of the record.
The identifier of the product this priority belongs to. One record per product.
The ranking weight. Higher values rank the product higher.
The request contains invalid or missing data — for example a missing product, a product that does not exist or already has a priority record, or a priority that is negative, too large, or null. The response names the field the complaint belongs to.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No product-priority record exists with the given identifier.
The request is well-formed but violates a business rule of the priority service — the product of an existing record was changed, or a bulk upsert element was not an object, had no product, or had a non-numeric product.
PATCH /api/v1/remote/1/product_priority/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"priority": 200
}{
"pk": 512,
"product": 3391,
"priority": 150
}Last updated
Was this helpful?

