Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Update a schedule

Update an existing schedule’s configuration

PATCH/api/v2/schedules/{scheduleId}
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Path parameters
scheduleIdstringrequired

The schedule ID

Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Request body
requiredapplication/json
namestring
min length 1 · max length 100
cronExpressionstring
timezonestring
urlstring<uri>
methodstring
Allowed:GETPOSTPUTPATCHDELETE
headersobject
bodyany

Request body

isPausedboolean
Responses
200

Schedule updated successfully

successboolean
dataPublicSchedule
Show properties
scheduleIdstringrequired
matches ^sch_
namestringrequired
cronExpressionstringrequired
timezonestring | nullrequired
urlstring<uri>required
methodstringrequired
Allowed:GETPOSTPUTPATCHDELETE
headersobject | nullrequired

Delivery headers with sensitive values redacted.

bodyany | nullrequired

Request body

isActivebooleanrequired
isPausedbooleanrequired
nextRunAtstring<date-time> | nullrequired
lastRunAtstring<date-time> | nullrequired
lastStatusstring | nullrequired
createdAtstring<date-time>required
updatedAtstring<date-time>required
400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
404

Not Found - Resource does not exist

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.anlyon.com/api/v2/schedules/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "cronExpression": "string",
  "timezone": "string",
  "url": "http://example.com",
  "method": "GET",
  "headers": {
    "property1": "string",
    "property2": "string"
  },
  "body": null,
  "isPaused": true
}'
Response
{
  "success": true,
  "data": {
    "scheduleId": "sch_1234567890abcdef",
    "name": "Daily Report",
    "cronExpression": "0 9 * * *",
    "timezone": "UTC",
    "url": "https://example.com/webhook",
    "method": "POST",
    "headers": {},
    "body": {
      "report": "daily"
    },
    "isActive": true,
    "isPaused": false,
    "nextRunAt": "2026-07-14T09:00:00Z",
    "lastRunAt": null,
    "lastStatus": null,
    "createdAt": "2026-07-13T12:00:00Z",
    "updatedAt": "2026-07-13T12:00:00Z"
  }
}