Skip to main content

Update an agent

PATCH 

/agents/:agent_id

Update an agent's profile, role or activation state.

Email and password cannot be changed here — both answer 400 with code: field_not_editable. They are identity rather than profile: an email change re-keys the global login index and must be confirmed from the address itself, and a password can only be set by the person who owns it.

The account's last Owner cannot be moved off Owner or deactivated. That answers 400 with code: last_owner — an account must never be able to lock itself out of its own product.

Request

Responses

The updated agent.

Response Headers
    X-Request-Id

    Correlation id for this request. Quote it when reporting a problem.