Task_schedules
API Key Scope: task_schedules / index
Display the next scheduled date, and information about missing executions.
trueThe number of items to display for pagination.
The number of items to skip for pagination.
Sort results by attribute.
Can sort on multiple attributes, separated by |.
Order direction can be suffixing the attribute by either :asc (default) or :desc.
Filter on id
Filter on RRule of schedule
Filter on done schedule
Filter on task id
List of task schedules.
GET /api/v2/task_schedules HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of task schedules.
{
"count": 1,
"task_schedules": [
{
"id": 1,
"task_id": 16,
"rrule": "DTSTART;TZID=Europe/Paris:20190705T085000\nRRULE:FREQ=WEEKLY",
"done": false,
"next": "2019-10-11T15:00:00Z",
"missed_count": 2,
"skipped_count": 0,
"missed_last": "2019-10-11T13:00:00Z",
"missed_first": "2019-10-11T11:00:00Z"
}
]
}API Key Scope: task_schedules / show
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
A specific task schedule.
GET /api/v2/tasks/{task_id}/task_schedule HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
A specific task schedule.
{
"id": 1,
"task_id": 16,
"rrule": "DTSTART;TZID=Europe/Paris:20190705T085000\nRRULE:FREQ=WEEKLY",
"done": false,
"next": "2019-10-11T15:00:00Z",
"missed_count": 2,
"skipped_count": 0,
"missed_last": "2019-10-11T13:00:00Z",
"missed_first": "2019-10-11T11:00:00Z"
}API Key Scope: task_schedules / create
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
16DTSTART;TZID=Europe/Paris:20190705T085000 RRULE:FREQ=WEEKLYfalse2019-10-11T15:00:00Z202019-10-11T13:00:00Z2019-10-11T11:00:00ZA specific task schedule.
The received resource was not correctly formatted.
POST /api/v2/tasks/{task_id}/task_schedule HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"task_id": 16,
"rrule": "DTSTART;TZID=Europe/Paris:20190705T085000\nRRULE:FREQ=WEEKLY",
"done": false
}{
"id": 1,
"task_id": 16,
"rrule": "DTSTART;TZID=Europe/Paris:20190705T085000\nRRULE:FREQ=WEEKLY",
"done": false,
"next": "2019-10-11T15:00:00Z",
"missed_count": 2,
"skipped_count": 0,
"missed_last": "2019-10-11T13:00:00Z",
"missed_first": "2019-10-11T11:00:00Z"
}API Key Scope: task_schedules / update
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
16DTSTART;TZID=Europe/Paris:20190705T085000 RRULE:FREQ=WEEKLYfalse2019-10-11T15:00:00Z202019-10-11T13:00:00Z2019-10-11T11:00:00ZA specific task schedule.
The received resource was not correctly formatted.
PUT /api/v2/tasks/{task_id}/task_schedule HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"task_id": 16,
"rrule": "DTSTART;TZID=Europe/Paris:20190705T085000\nRRULE:FREQ=WEEKLY",
"done": false
}{
"id": 1,
"task_id": 16,
"rrule": "DTSTART;TZID=Europe/Paris:20190705T085000\nRRULE:FREQ=WEEKLY",
"done": false,
"next": "2019-10-11T15:00:00Z",
"missed_count": 2,
"skipped_count": 0,
"missed_last": "2019-10-11T13:00:00Z",
"missed_first": "2019-10-11T11:00:00Z"
}API Key Scope: task_schedules / destroy
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
Task schedule destroyed.
No content
DELETE /api/v2/tasks/{task_id}/task_schedule HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
Task schedule destroyed.
No content
Last updated
Was this helpful?