---
title: "Bulk item operations"
method: POST
path: "/api/v2/indexing/bulk-item-operations"
tags: ["IndexV2"]
---

# Bulk item operations

`POST /api/v2/indexing/bulk-item-operations`

## Request

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

Perform bulk operation on given index

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- BulkItemOperationsParam: Bulk item operations params <seealso cref="T:HawkSearch.Elasticsearch.IndexingApi.Parameters.BulkOperationParams" />
  - `IndexName` string, required: Index used for Bulk Operation <seealso cref="T:HawkSearch.Elasticsearch.IndexingApi.Parameters.BulkOperationParams" />
  - `Operations` BulkOperationParams[], required: List of operations <seealso cref="T:HawkSearch.Elasticsearch.IndexingApi.Parameters.BulkOperationParams" />
    - `OperationType` string, required: Operation type that will be done on the index. Following values are allowed - index-items - update-items - add-attribute-to-item - remove-attribute-from-items - delete-items - update-attributes-of-items - update-nested-attributes - remove-nested-attributes
    - `Items` object[]: Array of documents
    - `Ids` string[]: Document ids
    - `DocId` string: Document id (Primary key)

## 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)
