Skip to main content
POST
Create Revision

Authorizations

Authorization
string
header
required

API key authentication. Get your API key from the Duvo dashboard.

Path Parameters

agent_id
string<uuid>
required

The agent's unique identifier

Body

application/json
name
string
required

Build name

Minimum string length: 1
config
object

Build configuration. An agent step takes the latest agent schema (legacy v1 agent configs are not accepted); a code step takes a code-step config. Omit it to get the step family's default first build.

handover_target_ids
string<uuid>[]

Agent IDs that this agent can hand work off to

handover_to
string<uuid> | null

The single agent or code step to run after this one completes ("Handover to"). Mutually exclusive with handover_target_ids.

handover_options
object | null

Code steps only. The targets the program may request, and whether it must. Null clears them; omit to inherit the source build's. Mutually exclusive with handover_to.

source_build_id
string<uuid>

Build ID to copy integrations and queue links from

selected_automation_revision_id
string<uuid> | null

The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision.

Response

Default Response

build
object
required
agent
object
required