> For the complete documentation index, see [llms.txt](https://docs.cloud.deepset.ai/llms.txt)

# Bulk Assign Search History Labels

`PUT /api/v2/workspaces/:workspace_id/pipelines/:pipeline_id/search_history/bulk/labels`

Assigns one or more labels to multiple search history records at once.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| pipeline_id | path | string (uuid) | Yes | Unique identifier of a pipeline. |
| workspace_id | path | string (uuid) | Yes | Type the id of the workspace. |

## Request Body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| labels | array of string | Yes | List of label strings to add or remove. |
| query_ids | array of string (uuid) | Yes | List of search history query IDs to update. |

## Responses

### 204

Successful Response

### 422

Validation Error

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| detail | array of object | No |  |
| detail[].ctx | object | No |  |
| detail[].input |  | No |  |
| detail[].loc | array of string or integer | Yes |  |
| detail[].msg | string | Yes |  |
| detail[].type | string | Yes |  |
