task_status

Gets a list of task statuses

Changed on

Lists task statuses

get/api/v1/task_statuses

Request

Query parameters

includestring
Example:first_load

Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes

indexstring
Example:user

Replaces the default response index from data to a user specific string

ie.

  ?index=new_index

response is wrapped

  {
    'new_index' : [
      .....  
    ]
  }
per_pageinteger
Example:20

The number of records to return for each request, default is 20

pageinteger
Example:1

The page number to return for this request (when performing pagination), default is 1

sortstring[]

Order the list by choosing a column and direction. Each value uses the form column|asc or column|desc.

Single sort — for example sort=sort_order|asc.

Multiple sorts — for example
sort[]=sort_order|asc&sort[]=name|asc.

Only task_statuses columns are recognized. Unsupported keys are ignored.

[
  "sort_order|asc"
]

Headers

X-API-TOKENstring required
Example:TOKEN

The API token to be used for authentication

X-Requested-Withstring required
Example:XMLHttpRequest

Used to send the XMLHttpRequest header

Response

A list of task statuses

Example response

{
  "data": [
    {
      "id": "Opnel5aKBz",
      "name": "Backlog",
      "color": "#000000",
      "task_status_order": 4,
      "created_at": 134341234234,
      "is_deleted": true,
      "updated_at": 134341234234,
      "archived_at": 134341234234
    }
  ],
  "meta": {
    "pagination": {
      "total": 1,
      "count": 1,
      "per_page": 1,
      "current_page": 1,
      "total_pages": 1
    }
  }
}

Changes