Skip to content

`POST /api/v1/agents/{node_id}` — change an agent's approval status.

POST
/api/v1/agents/{node_id}
curl --request POST \
--url https://example.com/api/v1/agents/example \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "status": "approved" }'
node_id
required
string

Agent node ID

Media type application/json

Request body for POST /api/v1/agents/{node_id}.

object
name

Required when status is approved: the immutable, operator-chosen human-readable name to assign to the agent. Ignored otherwise.

string | null
status
required

The approval action to take.

string
Allowed values: approved rejected

Agent status changed

Invalid request body or missing name

Agent not found