Skip to main content
PATCH
/
api
/
autopilots
/
{autopilot}
Update one autopilot.
curl --request PATCH \
  --url https://openagents.com/api/autopilots/{autopilot} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "avatar": "<string>",
  "displayName": "Autopilot",
  "policy": {
    "dataPolicy": {},
    "l402AllowedHosts": [
      "<string>"
    ],
    "l402MaxSpendMsatsPerCall": 123,
    "l402MaxSpendMsatsPerDay": 123,
    "l402RequireApproval": true,
    "model": "<string>",
    "modelProvider": "<string>",
    "toolAllowlist": [
      "<string>"
    ],
    "toolDenylist": [
      "<string>"
    ]
  },
  "profile": {
    "autopilotVoice": "<string>",
    "onboardingAnswers": {},
    "ownerDisplayName": "<string>",
    "personaSummary": "<string>",
    "preferences": {},
    "principles": [
      "<string>"
    ],
    "schemaVersion": 123
  },
  "status": "active",
  "tagline": "<string>",
  "visibility": "private"
}
'
{
  "data": {
    "avatar": "<string>",
    "configVersion": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "displayName": "<string>",
    "handle": "<string>",
    "id": "<string>",
    "ownerUserId": 123,
    "status": "<string>",
    "tagline": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "visibility": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

autopilot
string
required

Body

application/json

Update autopilot fields and optional profile/policy blocks.

avatar
string | null
Maximum string length: 255
displayName
string | null
Maximum string length: 120
Example:

"Autopilot"

policy
object
profile
object
status
string | null
Example:

"active"

tagline
string | null
Maximum string length: 255
visibility
string | null
Example:

"private"

Response

Autopilot resource payload

data
object