PUT
/
accounts
/
agent
/
{agentId}
curl --request PUT \
  --url https://server.ownid.com/{appId}/accounts/agent/{agentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "suspended",
  "agentType": "custom-ai",
  "metadata": {
    "notes": "Updated due to new security policy."
  }
}'
{
  "agentId": "agent_12345",
  "agentType": "custom-ai",
  "status": "suspended",
  "metadata": {
    "notes": "Updated due to new security policy."
  },
  "updatedAt": "2025-02-15T12:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer Token for admin authorization

Path Parameters

agentId
string
required

Unique identifier for the AI agent

Body

application/json

Response

200
application/json
Successful update of agent data

The response is of type object.