Update an agent
Changes only the fields in the body. capabilities and handoff_user_ids replace their whole sets.
Scope: agents:write.
bearerAuthAuthorizationBearer <token>An organization API key, rky_live_…, created in Settings → API. Send it only from a server.
agent_id*stringAgent ID.
uuidIdempotency-Key?stringOptional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as order-10482-ready. Retrying with the same key and body replays the first response instead of repeating the write.
8 <= length <= 200application/json- body
Only the fields you send change. Send null to clear a text.
name?stringName the team sees.
1 <= length <= 120description?|What the agent is for.
instructions?|How the agent answers customers.
model?stringA model id of GET /agent-options. Without one, the default model.
length <= 200voice?stringA voice of GET /agent-options. Without one, the default voice.
length <= 100capabilities?array<>The complete set of capability names. Replaces the current ones.
items <= 200handoff_user_ids?array<>The complete set of members who receive handed-off conversations. Required with ricky.handoff.request.
items <= 100Success.
application/json- response
data*An AI agent that answers conversations alongside the team.
curl -X PATCH 'https://getricky.ai/api/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Idempotency-Key: order-10482-ready' \ -H 'Content-Type: application/json' \ -d '{ "instructions": "Responde siempre en español y de forma breve."}'{ "data": { "id": "7e8f9a0b-1c2d-4e3f-a4b5-c6d7e8f9a0b1", "name": "Asistente de ventas", "description": "Atiende consultas de pedidos y horarios.", "instructions": "Saluda por el nombre y confirma el pedido antes de dar la fecha de entrega.", "model": "deepseek/deepseek-v4.1-flash", "voice": "diana", "capabilities": [ "ricky.handoff.request" ], "handoff_user_ids": [ "2d4f6a8c-1b3d-4e5f-8a7b-9c0d1e2f3a4b" ], "created_at": "2026-10-14T15:30:00.000Z", "updated_at": "2026-10-14T15:30:00.000Z", "archived_at": "2026-10-14T15:30:00.000Z" }}