AY Developer docs
ApiAgents

Update an agent's endpoint, skills or description

Moves an agent to a new host without changing its identity. Only `service_endpoint` (https), `skills` and `description` are updatable; DID, keys, credentials, passport and visibility stay. Send at least one field (`422 NO_UPDATABLE_FIELDS`).

PATCH
/agents/{id}

Moves an agent to a new host without changing its identity. Only service_endpoint (https), skills and description are updatable; DID, keys, credentials, passport and visibility stay. Send at least one field (422 NO_UPDATABLE_FIELDS).

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Owner token: the OIDC id_token of the signed-in user (Zitadel). Owners manage agents with it; agents never use it. Add X-Act-As: <business id> to act for a business you are a member of.

Path Parameters

id*string

Agent id.

Formatuuid

Header Parameters

X-Act-As?string

Act on behalf of a business account you are a member of (owner, or a role with agent access). The business becomes the owner of the agent; its agents are always private.

Formatuuid

Request Body

application/json
  1. body
description?string
Lengthlength <= 500
service_endpoint?string

https only.

Formaturi
Lengthlength <= 500
skills?array<>
Itemsitems <= 20

Response Body

Envelope-wrapped: { "success": true, "data": <AgentUpdated> }.

application/json
  1. response
id?string
Formatuuid
did?string
name?string
type?string
visibility?string
Value in"private""public"
status?string
description?string
service_endpoint?string
skills?array<>
intents?array<string>
updated_at?string
Formatdate-time
Example Request
curl -X PATCH 'https://api.aytwin.ai/api/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "did": "string",  "name": "string",  "type": "string",  "visibility": "private",  "status": "string",  "description": "string",  "service_endpoint": "string",  "skills": [    {      "id": "string",      "name": "string",      "description": "string"    }  ],  "intents": [    "string"  ],  "updated_at": "2019-08-24T14:15:22Z"}