Task_callbacks
API Key Scope: task_callbacks / index
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
The 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 type
Filter on task callback script
List of task callbacks.
GET /api/v2/tasks/{task_id}/task_callbacks HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of task callbacks.
{
"count": 1,
"task_callbacks": [
{
"id": 1,
"type": "filter",
"script": "text"
}
]
}API Key Scope: task_callbacks / create
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
A specific task callback.
The received resource was not correctly formatted.
POST /api/v2/tasks/{task_id}/task_callbacks HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"type": "filter",
"script": "text"
}{
"id": 1,
"type": "filter",
"script": "text"
}API Key Scope: task_callbacks / show
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
Numeric ID of task callback.
A specific task callback.
GET /api/v2/tasks/{task_id}/task_callbacks/{task_callback_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
A specific task callback.
{
"id": 1,
"type": "filter",
"script": "text"
}API Key Scope: task_callbacks / update
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
Numeric ID of task callback.
A specific task callback.
The received resource was not correctly formatted.
PUT /api/v2/tasks/{task_id}/task_callbacks/{task_callback_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"type": "filter",
"script": "text"
}{
"id": 1,
"type": "filter",
"script": "text"
}API Key Scope: task_callbacks / destroy
Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
Numeric ID of task callback.
Task callback destroyed.
No content
DELETE /api/v2/tasks/{task_id}/task_callbacks/{task_callback_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
Task callback destroyed.
No content
Last updated
Was this helpful?