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

# Set App Agents



## OpenAPI

````yaml /openapi-v1.json put /api/v1/apps/{name}/agents
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/apps/{name}/agents:
    put:
      tags:
        - Apps
      summary: Set App Agents
      operationId: core_api_v1_controllers_apps_set_app_agents
      parameters:
        - in: path
          name: name
          schema:
            title: Name
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppAgentsIn'
        required: true
      responses:
        '200':
          description: OK
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    AppAgentsIn:
      properties:
        agents:
          description: >-
            Ids or names of the agents the app's pages chat with as the
            signed-in user; [] unlinks them all.
          items:
            type: string
          maxItems: 20
          title: Agents
          type: array
        default_agent:
          anyOf:
            - maxLength: 255
              type: string
            - type: 'null'
          description: >-
            The agent answering when the SDK names none; one of `agents`, the
            first one by default.
          title: Default Agent
      required:
        - agents
      title: AppAgentsIn
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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