Skip to main content
PATCH
Update Agent

Update Agent

PATCH /v1/agents/{agentID} Updates mutable fields on an existing machine agent identity. Only the fields provided in the request body are modified; all other fields remain unchanged. At least one field must be provided.
To change an agent’s scopes, use the delegation system or re-register the agent. Scopes cannot be modified directly through this endpoint to preserve the audit trail of scope changes.

Authentication

Requires X-API-Key header or Bearer JWT token. The workspace is derived from the authenticated credential; do not send X-Tenant-ID.

Request Body

All fields are optional, but at least one must be provided.

Response

Returns the full updated agent identity object.
string
Internal UUID primary key.
string
MAIP-compliant agent identifier.
string
The updated display name.
string
The updated description.
object
The updated metadata object.
string
Current lifecycle status after update.
string
ISO 8601 timestamp reflecting the update.

Example

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

agentId
string<uuid>
required

Agent identifier

Body

application/json
description
string | null
display_name
string | null
Maximum string length: 256
metadata
any
status
string | null

Response

Agent updated

id
string<uuid>
agent_type
enum<string>
Available options:
orchestrator,
worker,
inference,
pipeline,
service,
bot,
llm
display_name
string
Maximum string length: 256
description
string
status
enum<string>
Available options:
active,
suspended,
revoked
scopes
string[]
metadata
object
trust_score
number<float>
Required range: 0 <= x <= 1
public_key
string

Base64-encoded public key

session_count
integer
keys
object[]
created_at
string<date-time>
updated_at
string<date-time>