> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ownid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update details for a specific AI agent

> Modifies an AI agent’s information, such as status or metadata.



## OpenAPI

````yaml put /accounts/agent/{agentId}
openapi: 3.1.0
info:
  title: OwnID API
  version: 1.0.0
  description: Server API for integrating with the OwnID
servers:
  - url: https://server.ownid.com/{appId}
security:
  - AdminAccessToken: []
paths:
  /accounts/agent/{agentId}:
    put:
      tags:
        - Agents
      summary: Update details for a specific AI agent
      description: Modifies an AI agent’s information, such as status or metadata.
      operationId: updateAgent
      parameters:
        - name: agentId
          in: path
          required: true
          description: Unique identifier for the AI agent
          schema:
            type: string
        - name: Authorization
          in: header
          required: true
          description: Bearer Token for admin authorization
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: The new status for the AI agent
                  example: suspended
                agentType:
                  type: string
                  description: (Optional) Update the agent type if necessary
                  example: custom-ai
                metadata:
                  type: object
                  description: Additional metadata or information about the agent
                  example:
                    notes: Updated due to new security policy.
      responses:
        '200':
          description: Successful update of agent data
          content:
            application/json:
              schema:
                type: object
                properties:
                  agentId:
                    type: string
                    description: The unique identifier for the AI agent
                    example: agent_12345
                  agentType:
                    type: string
                    description: The type of agent
                    example: custom-ai
                  status:
                    type: string
                    description: Current status of the AI agent
                    example: suspended
                  metadata:
                    type: object
                    description: Updated metadata about the agent
                    example:
                      notes: Updated due to new security policy.
                  updatedAt:
                    type: string
                    format: date-time
                    description: Date and time the agent was last updated
                    example: '2025-02-15T12:00:00.000Z'
        '400':
          description: Bad request or invalid input
        '401':
          description: Unauthorized or missing credentials
        '404':
          description: Agent not found
components:
  securitySchemes:
    AdminAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.