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

Create a product priority

Creates a priority record for a product.

product is required. priority defaults to 0 when omitted. Because a product may have only one priority record, a product that already has one is rejected with a validation error.

The new priority reaches storefront search after the next incremental index update.

post
/product_priority/
Authorizations
AuthorizationstringRequired

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

Body

The body of a product-priority create request.

productintegerRequired

The identifier of an existing product that does not yet have a priority record.

priorityinteger · max: 2147483647Optional

The ranking weight. Defaults to 0 when omitted.

Default: 0
Responses
201

The created 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.

post/product_priority/
POST /api/v1/remote/1/product_priority/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "product": 3391,
  "priority": 150
}
{
  "pk": 512,
  "product": 3391,
  "priority": 150
}

Last updated

Was this helpful?