Schedules

Learn how to manage schedules in your workspace

get
List Schedules

https://api.robomotion.io/v1/schedules.list
This endpoint allows you to get schedules in your workspace
Request
Response
Request
Query Parameters
search
optional
string
Search filter for searching the schedule by name
page
optional
integer
Used for pagination
size
optional
integer
Resources per page limit
Response
200: OK
{
"ok": true,
"schedules": [{
"id": "893ae870-0816-41b0-9a62-bfbd38ea902b",
"workspace_id": "f9ddef7e-a76c-4b7e-bdcc-8e7d2476a393",
"user_id": "eaec19c5-95fe-441a-b37c-c427c30034a2",
"robot_id": "624609c6-1a27-458f-ace5-3889dc554e28",
"flow_id": "90fb951c-dce6-40e5-9318-08aecb4742d1",
"name": "Test Schedule",
"cron": "0 0/5 * * * *",
"timezone": "(UTC+03:00) Istanbul",
"type": 0,
"active": 1
}],
"total": 1
}

post
Create Schedule

https://api.robomotion.io/v1/schedules.create
This endpoint allows you to create schedule in your workspace
Request
Response
Request
Body Parameters
name
required
string
Name of the sche
name
required
string
duled task
flow_id
required
string
Published flow id to be schedule to run
robot_id
required
string
Production robot that will run the flow
timezone
required
string
Timezone value like "Pacific Standard Time"
type
required
integer
0: minutely, 1: hourly, 2: daily, 3: weekly, 4:monthly, 5: advanced
cron
required
string
Unix-cron string format
Response
200: OK
{
"ok": true,
"schedule": {
"id": "4634d201-b0ee-4cad-a587-556d1d5eae47",
"workspace_id": "f9ddef7e-a76c-4b7e-bdcc-8e7d2476a393",
"user_id": "eaec19c5-95fe-441a-b37c-c427c30034a2",
"robot_id": "624609c6-1a27-458f-ace5-3889dc554e28",
"flow_id": "90fb951c-dce6-40e5-9318-08aecb4742d1",
"name": "My Task",
"cron": "0 0/5 * * * *",
"timezone": "(UTC-07:00) Pacific Time (US \u0026 Canada)",
"type": 0,
"active": 1
}
}

post
Update Schedule

https://api.robomotion.io/v1/schedules.update
This endpoint allows you to create schedule in your workspace
Request
Response
Request
Body Parameters
schedule_id
required
string
Schedule id to be updated
name
required
string
Name of the scheduled task
flow_id
required
string
Published flow id to be schedule to run
robot_id
required
string
Production robot that will run the flow
timezone
required
string
Timezone value like "Pacific Standard Time"
type
required
integer
0: minutely, 1: hourly, 2: daily, 3: weekly, 4:monthly, 5: advanced
cron
required
string
Unix-cron string format
Response
200: OK
{
"ok": true
}

delete
Delete Schedule

https://api.robomotion.io/v1/schedules.delete
This endpoint allows you to delete a schedule
Request
Response
Request
Body Parameters
schedule_id
required
string
Schedule id to be deleted
Response
200: OK
{
"ok": true
}