---
title: "Update sortingset by id"
method: PUT
path: "/api/v11/sortingset/{id}"
tags: ["SortingSet"]
---

# Update sortingset by id

`PUT /api/v11/sortingset/{id}`

Update SortingSet based on SortingSetId

## Path parameters

- `id` integer, required

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- SortingSetModel
  - `SortingSetId` integer
  - `SyncGuid` string, uuid
  - `Name` string, required
  - `Code` string, required
  - `RuleXml` string
  - `SortOrder` integer
  - `Fields` SortingSetFieldModel[]
    - `SortingSetFieldId` integer
    - `IsDefault` boolean
    - `IsPinSortIncluded` boolean
    - `ParamName` string, required
    - `Label` string, required
    - `FieldsConfig` SortingSetFieldDataModel[]
      - `Direction` string, required
      - `FieldId` integer
      - `IsCustom` boolean
      - `NumberOfDigits` integer
      - `NullValue` 0 | 1 | 2
      - `MoveNoValueToEnd` boolean
  - `CreateDate` string, date-time
  - `ModifyDate` string, date-time

## Response `200`

OK

- object

---

[API](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) · [All operations](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hawksearch/hawksearch-elasticsearch-indexingapi/versions/24cba7bf3468/schema)
