---
title: "update the config of a workflow"
method: POST
path: "/api/v1/workflow/config/update"
---

# update the config of a workflow

`POST /api/v1/workflow/config/update`

## Request body

- WorkflowConfigUpdateRequest
  - `workflowId` string, required
  - `workflowRunId` string
  - `workflowConfig` WorkflowConfig, required
    - `disableSystemSearchAttribute` boolean
    - `executingStateIdMode` 'ENABLED_FOR_ALL' | 'ENABLED_FOR_STATES_WITH_WAIT_UNTIL' | 'DISABLED'
    - `continueAsNewThreshold` integer
    - `continueAsNewPageSizeInBytes` integer
    - `optimizeActivity` boolean
    - `optimizeTimer` boolean

## Response `200`

successful operation

## Other responses

- `400` — Invalid input

## Changes

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

- **2025-02-04** `f214e9d70d66` — 1 info
  - added the new optional request property `workflowConfig/optimizeTimer`
- **2024-10-24** `6be3be10876f` — 1 warning, 1 info
  - removed the request property `workflowConfig/enabledExecutingStateExecutionIds`
  - added the new optional request property `workflowConfig/executingStateIdMode`
- **2024-05-14** `90548a4540ab` — 2 info
  - added the new optional request property `workflowConfig/enabledExecutingStateExecutionIds`
  - added the new optional request property `workflowConfig/optimizeActivity`
- **2023-07-05** `b341064dfc4b` — 1 warning
  - added the new `LONG_POLL_TIME_OUT_SUB_STATUS` enum value to the `subStatus` response property for the response status `400`
- **2023-04-15** `86630172940f` — 1 warning, 3 info
  - added the new `WORKER_API_ERROR` enum value to the `subStatus` response property for the response status `400`
  - added the optional property `originalWorkerErrorDetail` to the response with the `400` status
  - added the optional property `originalWorkerErrorStatus` to the response with the `400` status
  - added the optional property `originalWorkerErrorType` to the response with the `400` status

[Full history](https://skmtc.dev/indeedeng/apis/workflow-apis/changes/api/v1/workflow/config/update/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)
