Skip to content
  • Auto
  • Light
  • Dark

Update

Update Agent Route for an Agent
put/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}

To update an agent route for an agent, send a PUT request to /v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}.

Path ParametersExpand Collapse
parent_agent_uuid: string
child_agent_uuid: string
Body ParametersExpand Collapse
child_agent_uuid: optional string

Routed agent id

if_case: optional string

Describes the case in which the child agent should be used

parent_agent_uuid: optional string

A unique identifier for the parent agent.

route_name: optional string

Route name

uuid: optional string

Unique id of linkage

ReturnsExpand Collapse
child_agent_uuid: optional string

Routed agent id

parent_agent_uuid: optional string

A unique identifier for the parent agent.

rollback: optional boolean
uuid: optional string

Unique id of linkage

curl https://api.digitalocean.com/v2/gen-ai/agents/$PARENT_AGENT_UUID/child_agents/$CHILD_AGENT_UUID \
    -X PUT \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
  "child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "parent_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "rollback": true,
  "uuid": "123e4567-e89b-12d3-a456-426614174000"
}
Returns Examples
{
  "child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "parent_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "rollback": true,
  "uuid": "123e4567-e89b-12d3-a456-426614174000"
}