---
title: "Update Flow Action"
description: "How to call Update Flow Action (PATCH /api/flow-actions/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-07-15/reference/update_flow_action_beta"
revision: "2025-07-15.pre"
latestUrl: "https://developers.klaviyo.com/en/reference"
operationId: "update_flow_action_beta"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/flow-actions/{id}"
authentication: "privateKey"
scopes: ["flows:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
related: ["https://developers.klaviyo.com/en/v2025-07-15/reference/flows-beta/llms.txt","https://developers.klaviyo.com/en/v2025-07-15/reference/get_flow_action_beta.md","https://developers.klaviyo.com/en/v2025-07-15/reference/get_flow_message_beta.md","https://developers.klaviyo.com/en/v2025-07-15/reference/get_flow_action_messages_beta.md","https://developers.klaviyo.com/en/v2025-07-15/reference/get_action_for_flow_message_beta.md","https://developers.klaviyo.com/en/v2025-07-15/reference/get_action_id_for_flow_message_beta.md","https://developers.klaviyo.com/en/v2025-07-15/reference/get_actions_for_flow_beta.md"]
---

# Update Flow Action

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-07-15/reference/update_flow_action_beta

```http
PATCH https://a.klaviyo.com/api/flow-actions/{id}
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2025-04-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


Update a flow action.

- Revision header: `revision: 2025-04-15.pre` (required)
- Scopes: `flows:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/flow-actions/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-04-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "flow-action",
    "id": "string",
    "attributes": {
      "definition": {
        "id": "123",
        "temporary_id": "action-1",
        "type": "back-in-stock-delay"
      }
    }
  }
}'
```

## Path parameters

- `id` (string, required)

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-04-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `flow-action`
  - `id` (string, required)
  - `attributes` (object, required)
    - `definition` (oneOf, required): The encoded flow action definition.
      - One of:
        - Option 1: `BackInStockDelayAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `ConditionalBranchAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `SendEmailAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 4: `SendPushNotificationAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 5: `SendSmsAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 6: `SendWebhookAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 7: `SendInternalAlertAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 8: `TimeDelayAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 9: `TriggerBranchAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 10: `UpdateProfileAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 11: `TargetDateAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 12: `CountdownDelayAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 13: `AbTestAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 14: `InternalServiceAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 15: `CodeAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 16: `SplitAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 17: `BranchAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 18: `ListUpdateAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.

### Example request body

```json
{
  "data": {
    "type": "flow-action",
    "id": "string",
    "attributes": {
      "definition": {
        "id": "123",
        "temporary_id": "action-1",
        "type": "back-in-stock-delay"
      }
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `flow-action`
  - `id` (string, required)
  - `attributes` (object, required)
    - `created` (string<date-time>, nullable): Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Example: `2022-11-08T00:00:00+00:00`
    - `definition` (oneOf, nullable): The encoded flow action definition.
      - One of:
        - Option 1: `BackInStockDelayAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `ConditionalBranchAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `SendEmailAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 4: `SendPushNotificationAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 5: `SendSmsAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 6: `SendWebhookAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 7: `SendInternalAlertAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 8: `TimeDelayAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 9: `TriggerBranchAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 10: `UpdateProfileAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 11: `TargetDateAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 12: `CountdownDelayAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 13: `AbTestAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 14: `InternalServiceAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 15: `CodeAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 16: `SplitAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 17: `BranchAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 18: `ListUpdateAction` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `relationships` (object)
    - `flow` (object)
      - `data` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `flow-messages` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "flow-action",
    "id": "string",
    "attributes": {
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "definition": {
        "id": "123",
        "temporary_id": "action-1",
        "type": "back-in-stock-delay",
        "links": {
          "next": "string"
        }
      }
    },
    "relationships": {
      "flow": {
        "data": {
          "type": "flow",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "flow-messages": {
        "data": [
          {
            "type": "flow-message",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
