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

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.

patch
/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 partial update request. Every field is optional.

productintegerOptional

Including a product that differs from the record's current one is rejected. Omitting it keeps the current product.

priorityinteger · max: 2147483647Optional

The ranking weight.

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.

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