Skip to main content
POST
Add a branch

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workflowId
string
required

The ID of the workflow.

nodeId
string
required

The ID of the BranchNode or ExperimentBranchNode that should receive one new child.

Body

application/json
expectedRevisionId
string | null
required

The workflow revision token returned by the latest workflow read or mutation. Older workflows may return null before their first revision-aware mutation; pass null back as expectedRevisionId in that case. If the token is stale, the API returns a 409 Conflict error.

Response

Branch added.

node
object
required

Detailed workflow node returned from a mutation, plus the latest workflow revision token.

workflow
object
required
Example:
Last modified on August 14, 2026