Skip to content

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 Parameters
parent_agent_uuidstring
child_agent_uuidstring
Body Parameters
child_agent_uuidstring
optional
if_casestring
optional
parent_agent_uuidstring
optional

A unique identifier for the parent agent.

route_namestring
optional
uuidstring
optional
Returns
child_agent_uuidstring
optional
parent_agent_uuidstring
optional

A unique identifier for the parent agent.

rollbackboolean
optional
uuidstring
optional
Request example cURL
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 $GRADIENTAI_API_KEY" \
    -d '{}'
200 Example
{
  "child_agent_uuid": "child_agent_uuid",
  "parent_agent_uuid": "parent_agent_uuid",
  "rollback": true,
  "uuid": "uuid"
}