Skip to content

/api/v1/tenants/{tenantId}/servers/{serverId}/schedules (POST)

POST
/api/v1/tenants/{tenantId}/servers/{serverId}/schedules
curl --request POST \
--url https://example.com/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/servers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/schedules \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "cron": "example", "timeZone": "example", "enabled": true, "onlyWhenOnline": true, "tasks": [ { "action": "command", "payload": "example", "delaySeconds": 1, "continueOnFailure": true } ] }'
serverId
required
string format: uuid
tenantId
required
string format: uuid
Media typeapplication/json
object
name
required
string
cron
required
string
timeZone
required
null | string
enabled
required
boolean
onlyWhenOnline
required
boolean
tasks
required
Array<object>
object
action
Allowed values: command power backup update
payload
string
delaySeconds
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
continueOnFailure
boolean

OK