Create or replace sort options

šŸ” This endpoint requires HTTP authentication (either Basic or Bearer). For authenticating with Bearer token, required scopes are: sort_options(w).

Create or replace existing sort options. When providing sort options, every combination of sort_by and sort_order must be unique. For instance, there can only be one sort option that has a sort_by with value price and a sort_order with value ascending.

Query Params
string
required
length between 1 and 100

The key of the index to use.

string
length between 1 and 100

The section of the index to use. Defaults to Products.

string
length between 1 and 100

The ID of the client and version that the request is coming from, such as cio-js-2.90.

Body Params
sort_options
array of objects
required
length between 1 and 50

Array of sort options you want to create or replace.

Sort Options*
Responses

400

Validation Error

401

Credentials are not passed or action is forbidden.

403

The supplied token does not have the required permissions.

429

Rate limit breached

Language
Credentials
:
LoadingLoading…
Response
Choose an example:
application/json