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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a product-priority create request.
The identifier of an existing product that does not yet have a priority record.
The ranking weight. Defaults to 0 when omitted.
0The created 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.
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?

