Task_callbacks
API Key Scope: task_callbacks / index
ID or name of task. Task names are not unique, it's recommended to use ID.
The number of items to display for pagination.
The number of items to skip for pagination.
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": "text",
"type": "filter",
"language": "javascript",
"script": "text"
}
]
}API Key Scope: task_callbacks / create
ID or name of task. Task names are not unique, it's recommended to use 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: 57
{
"type": "filter",
"language": "javascript",
"script": "text"
}{
"id": "text",
"type": "filter",
"language": "javascript",
"script": "text"
}API Key Scope: task_callbacks / show
ID or name of task. Task names are not unique, it's recommended to use ID.
ID of task callback.
A specific task callback.
The requested resource was not found. The detailed error will be of type not_found.
GET /api/v2/tasks/{task_id}/task_callbacks/{task_callback_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"id": "text",
"type": "filter",
"language": "javascript",
"script": "text"
}API Key Scope: task_callbacks / update
ID or name of task. Task names are not unique, it's recommended to use ID.
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: 57
{
"type": "filter",
"language": "javascript",
"script": "text"
}{
"id": "text",
"type": "filter",
"language": "javascript",
"script": "text"
}API Key Scope: task_callbacks / destroy
ID or name of task. Task names are not unique, it's recommended to use ID.
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?