Skip to main content
PUT
/
api
/
automations
/
{id}
Update an automation
curl --request PUT \
  --url https://operator.io/api/automations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "prompt": "<string>",
  "cronExpression": "<string>",
  "timezone": "<string>",
  "enabled": true
}
'
{
  "automation": {
    "id": "<string>",
    "name": "<string>",
    "prompt": "<string>",
    "cronExpression": "<string>",
    "timezone": "<string>",
    "enabled": true,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key (ck_live_...). Create one in Settings > API Keys.

Path Parameters

id
string
required

Body

application/json
name
string
prompt
string
cronExpression
string
timezone
string
enabled
boolean

Response

200 - application/json

Updated.

automation
object