Schedule create.
ROLES: AUTOMATION_ADMIN USER: true SERVICE ACCOUNT: true
curl --request POST \
--url https://api.revoengine.com/api/v1/automation/schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Morning sync",
"cron": "30 9 * * MON-FRI",
"targetType": "AGENT",
"targetId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"timezone": "Europe/Warsaw"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Morning sync',
cron: '30 9 * * MON-FRI',
targetType: 'AGENT',
targetId: 'eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee',
timezone: 'Europe/Warsaw'
})
};
fetch('https://api.revoengine.com/api/v1/automation/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/automation/schedule"
payload = {
"name": "Morning sync",
"cron": "30 9 * * MON-FRI",
"targetType": "AGENT",
"targetId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"timezone": "Europe/Warsaw"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Body
Display name of the schedule.
"Morning sync"
5-field cron expression used by the scheduling system.
"30 9 * * MON-FRI"
Normalized execution target type used by runtime dispatch.
JOB_TEMPLATE, AGENT, PLATFORM_OPERATION "AGENT"
Execution target id aligned with targetType.
"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee"
IANA timezone for this schedule. Use canonical names like Europe/Warsaw or UTC. Abbreviations like CET or EST are rejected because they break DST handling.
"Europe/Warsaw"
Runtime input for Job targets, exposed through api.input("templateInputs"). Defaults to {}. Override is shallow; Deep Override recursively merges objects. Automation keys take precedence; arrays and null replace whole values. Does not change the event message, Job execution policy, concurrency or retry settings.
{ "export": { "format": "csv" } }
override: shallow overlay onto Job templateInputs; deep_override: recursively overlay objects, replacing arrays and retaining null as a value; automation keys win in both modes; replace: replace all Job templateInputs, including clearing them with {}. Defaults to override.
override, deep_override, replace "override"
Optional presentation category used to group schedules.
"Operations"
Whether the schedule is active immediately after creation.
true
Operator-visible schedule description.
"Runs the customer sync every business morning."
Optional resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
{ "costCenter": "ops" }
Optional reserved target version metadata. Ignored for AGENT targets, which always execute the current Agent definition.
2
Optional target-specific execution settings.
{ "mode": "inbox" }
Response
Job scheduled.
curl --request POST \
--url https://api.revoengine.com/api/v1/automation/schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Morning sync",
"cron": "30 9 * * MON-FRI",
"targetType": "AGENT",
"targetId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"timezone": "Europe/Warsaw"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Morning sync',
cron: '30 9 * * MON-FRI',
targetType: 'AGENT',
targetId: 'eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee',
timezone: 'Europe/Warsaw'
})
};
fetch('https://api.revoengine.com/api/v1/automation/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/automation/schedule"
payload = {
"name": "Morning sync",
"cron": "30 9 * * MON-FRI",
"targetType": "AGENT",
"targetId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"timezone": "Europe/Warsaw"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
