SortingAlgorithm

Retrieve Sorting Algorithm

get

Retrieve a specific sorting algorithm by ID

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
chevron-right
200

Sorting Algorithm retrieved successfully

application/json
get
/api/v1/sorting_algorithms/{id}/

Update Sorting Algorithm

put

Update a specific sorting algorithm by ID

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body
Responses
chevron-right
200

Sorting Algorithm updated

No content

put
/api/v1/sorting_algorithms/{id}/

No content

Delete Sorting Algorithm

delete

Delete a specific Sorting Algorithm by ID

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
delete
/api/v1/sorting_algorithms/{id}/

No content

Partial Update Sorting Algorithm

patch

Partial update a specific sorting algorithm by ID

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body
Responses
chevron-right
200

Sorting Algorithm updated

No content

patch
/api/v1/sorting_algorithms/{id}/

No content

List Sorting Algorithm

get

List Sorting Algorithm

Authorizations
AuthorizationstringRequired
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
idintegerOptional

Filters by id

pkintegerOptional

Filters by primary key

pk__gtstringOptional

Filter by primary key greater than a specific value.

pk__gteintegerOptional

Filters by primary key greater than or equal to the given value

pk__ltintegerOptional

Filters by primary key less than the given value

pk__lteintegerOptional

Filters by primary key less than or equal to the given value

sorting_typestring · enumOptional

The type of sorting algorithm.

Possible values:
rulesetobjectOptional

A JSON object containing the ruleset for the sorting algorithm.

Example: [{"exp":[{"field":"stock"},{"attribute":"stock"}],"mode":"sum","path":"r0001","order":"desc","rule_type":"sorter"}]
configobjectOptional

A JSON object containing the configuration for the sorting algorithm.

Example: {"mode":"max","order":"asc","client":"stream","base_url":"http://cdn_url/stream_files/test.csv","delimeter":";","file_format":"csv"}
catalog_idintegerOptional

Filter by catalog ID.

codestringOptional

Filter by code.

namestringOptional

Filter by name.

is_visiblebooleanOptional

Indicates whether this sorting algorithm is visible.

created_datestring · date-timeOptional

Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: created_date__gt=2024-01-01T00:00:00Z
modified_datestring · date-timeOptional

Filter by modification date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: modified_date__lt=2024-01-01T00:00:00Z
Responses
chevron-right
200

OK

application/json
get
/api/v1/sorting_algorithms/

Create Sorting Algorithm

post

Create a new sorting algorithm.

Authorizations
AuthorizationstringRequired
Body
Responses
post
/api/v1/sorting_algorithms/

Last updated

Was this helpful?