---
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`

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