DigitalOcean-public.v2-new_GradientAI Platform
Update Agent Route for an Agent
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}.
put/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}
Path parameters
parent_agent_uuidstring required
A unique identifier for the parent agent.
child_agent_uuidstring required
Routed agent id
Request body
Example request
{
"child_agent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"if_case": "\"use this to get weather information\"",
"parent_agent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"route_name": "\"weather_route\"",
"uuid": "\"12345678-1234-1234-1234-123456789012\""
}Response
A successful response.
Example response
{
"child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"parent_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"rollback": true,
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}