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

# Update one autopilot.



## OpenAPI

````yaml api/openapi.json patch /api/autopilots/{autopilot}
openapi: 3.0.2
info:
  contact:
    name: OpenAgents
    url: https://openagents.com
  description: >-
    OpenAgents REST API (Laravel). Primary auth is Sanctum bearer tokens for
    /api endpoints.
  title: OpenAgents API
  version: 1.0.0
servers:
  - description: Primary production server
    url: https://openagents.com
security:
  - SanctumToken: []
tags:
  - description: Authentication context and token lifecycle endpoints.
    name: Auth
  - description: Conversation, run, and stream endpoints.
    name: Chat
  - description: Autopilot resources, thread scoping, and stream alias routes.
    name: Autopilot
  - description: Authenticated profile management endpoints.
    name: Profile
  - description: Global public broadcast messages, optionally scoped by zone.
    name: Shouts
  - description: Direct messages between two users, inbox and thread retrieval.
    name: Whispers
  - description: Lightning L402 wallet, receipts, and deployment telemetry endpoints.
    name: L402
  - description: >-
      Per-user Spark wallet lifecycle and payment APIs (invoice + pay + spark
      transfers).
    name: Agent Payments
paths:
  /api/autopilots/{autopilot}:
    patch:
      tags:
        - Autopilot
      summary: Update one autopilot.
      parameters:
        - in: path
          name: autopilot
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                avatar:
                  maxLength: 255
                  nullable: true
                  type: string
                displayName:
                  example: Autopilot
                  maxLength: 120
                  nullable: true
                  type: string
                policy:
                  nullable: true
                  properties:
                    dataPolicy:
                      additionalProperties:
                        type: string
                      type: object
                    l402AllowedHosts:
                      items:
                        type: string
                      type: array
                    l402MaxSpendMsatsPerCall:
                      nullable: true
                      type: integer
                    l402MaxSpendMsatsPerDay:
                      nullable: true
                      type: integer
                    l402RequireApproval:
                      nullable: true
                      type: boolean
                    model:
                      maxLength: 128
                      nullable: true
                      type: string
                    modelProvider:
                      maxLength: 64
                      nullable: true
                      type: string
                    toolAllowlist:
                      items:
                        type: string
                      type: array
                    toolDenylist:
                      items:
                        type: string
                      type: array
                  type: object
                profile:
                  nullable: true
                  properties:
                    autopilotVoice:
                      maxLength: 64
                      nullable: true
                      type: string
                    onboardingAnswers:
                      additionalProperties:
                        type: string
                      type: object
                    ownerDisplayName:
                      maxLength: 120
                      nullable: true
                      type: string
                    personaSummary:
                      nullable: true
                      type: string
                    preferences:
                      additionalProperties:
                        type: string
                      type: object
                    principles:
                      items:
                        type: string
                      type: array
                    schemaVersion:
                      nullable: true
                      type: integer
                  type: object
                status:
                  example: active
                  nullable: true
                  type: string
                tagline:
                  maxLength: 255
                  nullable: true
                  type: string
                visibility:
                  example: private
                  nullable: true
                  type: string
              type: object
        description: Update autopilot fields and optional profile/policy blocks.
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    properties:
                      avatar:
                        nullable: true
                        type: string
                      configVersion:
                        type: integer
                      createdAt:
                        format: date-time
                        nullable: true
                        type: string
                      displayName:
                        type: string
                      handle:
                        type: string
                      id:
                        type: string
                      ownerUserId:
                        type: integer
                      status:
                        type: string
                      tagline:
                        nullable: true
                        type: string
                      updatedAt:
                        format: date-time
                        nullable: true
                        type: string
                      visibility:
                        type: string
                    type: object
                type: object
          description: Autopilot resource payload
        '401':
          content:
            application/json:
              schema:
                properties:
                  message:
                    example: Unauthenticated.
                    type: string
                type: object
          description: Authentication required
        '404':
          content:
            application/json:
              schema:
                properties:
                  message:
                    example: Not found.
                    type: string
                type: object
          description: Not found
        '422':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    additionalProperties:
                      items:
                        type: string
                      type: array
                    type: object
                  message:
                    example: The given data was invalid.
                    type: string
                type: object
          description: Validation error
components:
  securitySchemes:
    SanctumToken:
      bearerFormat: Sanctum PAT
      scheme: bearer
      type: http

````