Get task statuses
This endpoint is deprecated.
POST
/api/RPC.common.Api.Tasks.getTasksStatuses?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
name | String | Status |
get_all | Boolean | Get all |
Request example
// Get Tasks Statuses By Name examples json
Get Tasks Statuses By Name:
{
"data" : [
{
"name" : "Complaint"
}
]
}
// Get All Statuses examples json
Get All Statuses:
{
"get_all" : 1,
"limit" : 10000,
"data" : [
{}
],
"offset" : 0
}cURL
// Curl examples:
Get Tasks Statuses By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "Complaint" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Tasks.getTasksStatuses?token=<TOKEN>"
// Curl examples:
Get All Statuses:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "get_all" : 1, "limit" : 10000, "data" : [ {} ], "offset" : 0}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Tasks.getTasksStatuses?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : [
{
"id" : 1227384748,
"name" : "Complaint"
}
],
"count" : 1,
"total_count" : 1
}