Skip to main content
PUT
Replace a flow's spec

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Path Parameters

flow_id
string
required

Body

application/json
spec
Spec · object
required
version
integer
required

The version you read (GET .../spec); a newer one is refused (409)

graph_hash
string | null

The graph_hash you read. Required for a flow built or changed in the editor: if it changed again since, 409

Response

200 - application/json

Successful Response

editor_url
string
required

The flow in Agent Studio

enabled
boolean
required
flow_id
string
required
name
string
required
trigger
string
required

The audience in words

version
integer
required
nodes
Nodes · object

step id -> node id in the editor