---
type: api
title: Update a workflow
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v9/operation/operation-put-workflows-workflow-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v9/operation/operation-put-workflows-workflow-id
products:
  - Kibana
---

# Update a workflow

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

- `PUT` `/api/workflows/workflow/{id}`
- `PUT` `/s/{space_id}/api/workflows/workflow/{id}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v9/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v9/authentication#basicauth)

#### Path Parameters

- `id` (string)
  Workflow ID

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Partially update an existing workflow. You can update individual fields such as name, description, enabled state, tags, or the YAML definition without providing all fields.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:update.

## Request Body

`application/json`

- `description` (string) — optional
- `enabled` (boolean) — optional
- `name` (string) — optional
- `tags` ([] string) — optional
- `yaml` (string) — optional

## Response

Indicates a successful response

## Code Examples

#### Console

```console
PUT kbn://api/workflows/workflow/{id}
{
  "enabled": true,
  "tags": ["production"]
}
```

#### curl

```curl
curl \
  -X PUT "${KIBANA_URL}/api/workflows/workflow/{id}" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "tags": ["production"]
  }'
```

## Response Examples

#### Update workflow response

Example response returning the updated workflow

```json
{
  "enabled": false,
  "id": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "lastUpdatedAt": "2026-03-23T13:38:59.568Z",
  "lastUpdatedBy": "elastic",
  "valid": true,
  "validationErrors": []
}
```

