---
title: "set workflow search attributes"
method: POST
path: "/api/v1/workflow/searchattributes/set"
---

# set workflow search attributes

`POST /api/v1/workflow/searchattributes/set`

## Request body

- WorkflowSetSearchAttributesRequest
  - `workflowId` string, required
  - `workflowRunId` string
  - `searchAttributes` SearchAttribute[]
    - `key` string
    - `stringValue` string
    - `integerValue` integer
    - `doubleValue` number, double
    - `boolValue` boolean
    - `stringArrayValue` string[]
    - `valueType` 'KEYWORD' | 'TEXT' | 'DATETIME' | 'INT' | 'DOUBLE' | 'BOOL' | 'KEYWORD_ARRAY'

## Response `200`

successful operation

## Other responses

- `400` — Invalid input

## Changes

> 50 revisions in range; 1 could not be searched.

- **2024-11-12** `c19b99d01d2f` — 1 info
  - endpoint added
- **2022-12-18** `a325ec23e79c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/indeedeng/apis/workflow-apis/changes/api/v1/workflow/searchattributes/set/post.md)

---

[API](https://skmtc.dev/indeedeng/apis/workflow-apis.md) · [All operations](https://skmtc.dev/indeedeng/apis/workflow-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/indeedeng/workflow-apis/revisions/fe9c7606824c/schema)
