---
title: "Update attributes of items"
method: POST
path: "/api/v2/indexing/update-attributes-of-items"
tags: ["IndexV2"]
---

# Update attributes of items

`POST /api/v2/indexing/update-attributes-of-items`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v2/indexing/update-attributes-of-items`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v2/indexing/update-attributes-of-items/post.ts> (a function with typed inputs; its response is checked against the schema)

Update attributes value of documents in a specific index

Due to the limitations of this web solution, this endpoint does not support the "Try It" option.

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- UpdateAttributesItemParams
  - `IndexName` string: Index used for delete operation
  - `DocId` string: Primary key Value
  - `HasVariants` boolean: Boolean value
  - `VariantAttributeToQuery` string: String value
  - `VariantAttributeValue` string: String value
  - `Attributes` object[]: Attributes to be updated

## Response `200`

OK

- object

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
