younifyd
Menu

Delete sort options

Delete sort options

DELETE/v1/sort_options

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Delete sort options action (under Sort Options).
  3. Fill in the fields below, then reference the result from later steps as {{deleteSortOptions.response.data}}.

Request

Query parameters

sectionstring

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

cstring

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

Request body

Enter the body as JSON in the step's Body field.

sort_optionsarray<object>required

The list of sort options to delete, specified by `sort_order` and `sort_by`.

sort_bystringrequired

The name of the sort option.

sort_orderanyrequired

The order the results will be sorted in

json
{
  "sort_options": [
    {
      "sort_by": "string",
      "sort_order": null
    }
  ]
}

Response

Returns 204 with a any. Read it in later steps with {{deleteSortOptions.response.data.<field>}}.

Need more? See the Constructor guide for connection setup and behaviour shared by every action.