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

# agent.update

> Updates an agent's nickname and description. Use [agent.detail](https://open.manus.ai/docs/v2/agent.detail) to view current values before updating.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

> [!TIP]
>
> **Auth:** API Key or Trusted client. Standard OAuth clients cannot access this endpoint.


## OpenAPI

````yaml POST /v2/agent.update
openapi: 3.1.0
info:
  title: Manus OpenAPI v2
  description: >-
    API for integrating Manus into your workflow. All responses are wrapped with
    {"ok": true, "request_id": "...", ...} for success and {"ok": false,
    "request_id": "...", "error": {"code": "...", "message": "..."}} for errors.
  version: 2.0.0
servers:
  - url: https://api.manus.ai
security:
  - ApiKeyAuth: []
paths:
  /v2/agent.update:
    post:
      summary: UpdateAgent
      description: >-
        Updates an agent's nickname and description. Use
        [agent.detail](https://open.manus.ai/docs/v2/agent.detail) to view
        current values before updating.
      operationId: openapi.v2.OpenapiV2Service.UpdateAgent
      parameters:
        - name: x-manus-api-key
          in: header
          required: false
          schema:
            type: string
          description: >-
            API key for direct authentication. Provide either this or
            `Authorization`, not both. See
            [Authentication](https://open.manus.ai/docs/v2/authentication).
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
            example: Bearer {access_token}
          description: >-
            OAuth token from a `Trusted team client` or `Trusted public client`.
            Other OAuth clients cannot access this endpoint. See the [Open
            App](https://open.manus.ai/docs/v2/open-app) guide.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                agent_id:
                  type: string
                  description: The unique identifier of the agent to update.
                nickname:
                  type: string
                  description: New display name for the agent.
                about:
                  type: string
                  description: New description or bio for the agent.
              required:
                - agent_id
      responses:
        '200':
          description: Agent updated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  agent:
                    $ref: '#/components/schemas/Agent'
                    description: The updated agent object.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    Agent:
      type: object
      description: >-
        A custom agent with its own identity (nickname and description) that can
        be customized for specific use cases. See the
        [Agents](https://open.manus.ai/docs/v2/agents-overview) guide.
      properties:
        id:
          type: string
          description: >-
            Unique identifier for the agent. Use this as `agent_id` in
            [task.list](https://open.manus.ai/docs/v2/task.list) (with
            `scope=agent_subtask`) to view this agent's subtasks.
        task_id:
          type: string
          description: >-
            The agent's main task, which is its persistent conversation thread.
            Pass it as `task_id` to
            [task.sendMessage](https://open.manus.ai/docs/v2/task.sendMessage)
            to talk to the agent, or to
            [task.listMessages](https://open.manus.ai/docs/v2/task.listMessages)
            to read the conversation. For the IM agent, the shortcut
            `agent-default-main_task` resolves to this value.
        nickname:
          type: string
          description: >-
            Display name of the agent. Can be updated via
            [agent.update](https://open.manus.ai/docs/v2/agent.update).
        about:
          type: string
          description: >-
            Description or bio of the agent explaining its purpose and
            specialization. Can be updated via
            [agent.update](https://open.manus.ai/docs/v2/agent.update).
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g., "invalid_argument",
                "not_found", "permission_denied", "rate_limited").
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-manus-api-key

````

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