Skip to main content
PATCH
/
api
/
public
/
flows
/
{id}
Update a flow
curl --request PATCH \
  --url https://astrasend-mocha.vercel.app/api/public/flows/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "definition": {
    "nodes": [
      {
        "id": "<string>",
        "position": {
          "x": 123,
          "y": 123
        },
        "data": {}
      }
    ],
    "edges": [
      {
        "id": "<string>",
        "source": "<string>",
        "target": "<string>",
        "sourceHandle": "<string>"
      }
    ]
  }
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Your API key (as_live_…), created under Settings → API keys.

Path Parameters

id
string
required

Body

application/json
name
string
description
string
status
enum<string>
Available options:
draft,
active,
paused,
archived
definition
object

Response

Success

ok
boolean
Example:

true