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

# Update agent



## OpenAPI

````yaml /agent-openapi.json patch /api/v1/agents/{name}
openapi: 3.1.0
info:
  title: Polpo API
  version: 1.0.0
  description: >-
    REST API for Polpo — an AI agent that manages teams of AI coding agents.
    Manage tasks, missions, agents, playbooks, skills, and approvals. For
    conversational interaction, use the OpenAI-compatible POST
    /v1/chat/completions endpoint.
servers:
  - url: http://localhost:3890
    description: Local development
security:
  - bearerAuth: []
paths:
  /api/v1/agents/{name}:
    patch:
      tags:
        - Agents
      summary: Update agent
      parameters:
        - schema:
            type: string
          required: true
          name: name
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                role:
                  type: string
                model:
                  type: string
                allowedTools:
                  type: array
                  items:
                    type: string
                allowedPaths:
                  type: array
                  items:
                    type: string
                systemPrompt:
                  type: string
                skills:
                  type: array
                  items:
                    type: string
                maxTurns:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                maxConcurrency:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                identity:
                  type: object
                  properties:
                    displayName:
                      type: string
                    title:
                      type: string
                    company:
                      type: string
                    email:
                      type: string
                    bio:
                      type: string
                    timezone:
                      type: string
                    avatar:
                      type: string
                    responsibilities:
                      type: array
                      items:
                        anyOf:
                          - type: string
                          - type: object
                            properties:
                              area:
                                type: string
                              description:
                                type: string
                              priority:
                                type: string
                                enum:
                                  - critical
                                  - high
                                  - medium
                                  - low
                            required:
                              - area
                              - description
                    tone:
                      type: string
                    personality:
                      type: string
                    socials:
                      type: object
                      additionalProperties:
                        type: string
                reportsTo:
                  type: string
                reasoning:
                  type: string
                assignedLoops:
                  type: array
                  description: Project-level Agentic Loop names assigned to this agent.
                  items:
                    type: string
                defaultLoop:
                  type: string
                  description: Default assigned Agentic Loop for this agent.
                browserProfile:
                  type: string
                emailAllowedDomains:
                  type: array
                  items:
                    type: string
                team:
                  type: string
      responses:
        '200':
          description: Agent updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  data:
                    nullable: true
                required:
                  - ok
        '404':
          description: Agent not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - ok
                  - error
                  - code
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key passed as a Bearer token. Configure via the apiKeys field in
        polpo.json or the POLPO_API_KEY environment variable.

````