Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

put
/product_priority/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the product-priority record.

Body

The body of a product-priority full update request.

productintegerRequired

Must match the record's current product — a different value is rejected with 406 Not Acceptable.

priorityinteger · max: 2147483647Optional

The ranking weight. Omitting it keeps the current value.

Responses
200

The updated product-priority record.

application/json

A product-priority record — the ranking weight of a single product.

pkintegerRead-onlyOptional

The unique identifier of the record.

productintegerOptional

The identifier of the product this priority belongs to. One record per product.

priorityinteger · max: 2147483647Optional

The ranking weight. Higher values rank the product higher.

put/product_priority/{id}/
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?