Update a product priority
Fully updates a product-priority record. product is required and must match the record's current product; sending a different product 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 full update request.
Must match the record's current product — a different value is rejected with 406 Not Acceptable.
The ranking weight. Omitting it keeps the current value.
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.
PUT /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: 31
{
"product": 3391,
"priority": 200
}{
"pk": 512,
"product": 3391,
"priority": 150
}Last updated
Was this helpful?

