Skip to main content
POST
Create a new schedule for an agent

Authorizations

Authorization
string
header
required

API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"

Authorization
string
header
required

OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"

Path Parameters

agentId
integer<int32>
required

The ID of the agent

Body

The schedule configuration

Request model for creating a new schedule

name
string | null

Name of the schedule (required)

cronExpression
string | null

Cron expression for the schedule (e.g., "0 9 * * 1,4" for Mon/Thu at 9am)

localSchedule
string | null

Local schedule expression (human readable)

timezone
string | null

Timezone for the schedule (e.g., "America/New_York")

startTime
string<date-time> | null

Start date/time for the schedule in UTC.

  • Required for RunOnce schedules (must be at least 1 minute in the future).
  • Optional for RunEvery schedules (if provided, must be in the future; determines when the first run occurs).
  • Not used for CRON schedules.
Example:

"2026-01-20T14:30:00Z"

inputParameters
string | null

JSON string of input parameters for scheduled runs

scheduleType
enum<integer>

0 = None; 1 = RunOnce; 2 = RunEvery; 3 = CRON

Available options:
0,
1,
2,
3
isEnabled
boolean

Whether the schedule is enabled

runEveryCount
integer<int32> | null

Run every N periods (used with RunEveryPeriod)

runEveryPeriod
integer<int32> | null

Period unit for RunEveryCount (1=minutes, 2=hours, 3=days, 4=weeks, 5=months)

parallelism
integer<int32> | null

Parallelism level for the scheduled run

parallelMaxConcurrency
integer<int32> | null

Max concurrency for parallel runs

parallelExport
enum<string>

0 = Combined; 1 = Separated

Available options:
Combined,
Separated
proxyPoolId
integer<int32> | null

Proxy pool ID to use for scheduled runs

serverGroupId
integer<int32> | null

Server group ID for scheduled runs (optional). When specified, the schedule will run on servers in this group.

logLevel
enum<string>

0 = Fatal; 1 = Error; 2 = Warning; 3 = Info

Available options:
Fatal,
Error,
Warning,
Info
logMode
enum<string>

0 = Text; 1 = TextAndHtml

Available options:
Text,
TextAndHtml
isExclusive
boolean

Whether to run exclusively (no concurrent runs)

isWaitOnFailure
boolean

Whether to wait on failure before retrying

Response

Returns the created schedule

Represents a scheduled task for an agent in the External API

id
integer<int64>
configId
integer<int32>
name
string | null
schedule
string | null
localSchedule
string | null
timezone
string | null
nextRunTime
string<date-time> | null
startTime
string<date-time> | null
scheduleType
enum<integer>

0 = None; 1 = RunOnce; 2 = RunEvery; 3 = CRON

Available options:
0,
1,
2,
3
isEnabled
boolean
runEveryCount
integer<int32> | null
runEveryPeriod
integer<int32> | null
inputParameters
string | null
parallelism
integer<int32> | null
parallelMaxConcurrency
integer<int32> | null
parallelExport
enum<string>

0 = Combined; 1 = Separated

Available options:
Combined,
Separated
proxyPoolId
integer<int32> | null
serverGroupId
integer<int32> | null
logLevel
enum<string>

0 = Fatal; 1 = Error; 2 = Warning; 3 = Info

Available options:
Fatal,
Error,
Warning,
Info
logMode
enum<string>

0 = Text; 1 = TextAndHtml

Available options:
Text,
TextAndHtml
isExclusive
boolean
isWaitOnFailure
boolean
created
string<date-time>
updated
string<date-time>