HTTP Verb: GET

Available statuses: 200 OK, 204 No Content, 404 Not Found

Object: TicketStatus

Location: n/a

Formats: XML, JSON

Returns tickets statuses list

Params

No params available

Examples

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/tickets/statuses.json

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 20 Sep 2012 14:06:00 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

[
  {
    "id":1,
    "space_tool_id":"dP3FZG_ber4B8UadbNA33N",
    "name":"New",
    "state":1,
    "list_order":1,
    "created_at":"2012-09-11T13:09:26Z",
    "updated_at":"2012-09-11T13:09:26Z"
  },
  ...
]

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/tickets/statuses.xml

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 20 Sep 2012 14:04:12 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<ticket-statuses type="array">
  <ticket-status>
    <id type="integer">1</id>
    <space-tool-id>dP3FZG_ber4B8UadbNA33N</space-tool-id>
    <name>New</name>
    <state type="integer">1</state>
    <list-order type="integer">1</list-order>
    <created-at type="datetime">2012-09-11T13:09:26Z</created-at>
    <updated-at type="datetime">2012-09-11T13:09:26Z</updated-at>
  </ticket-status>
  ...
</ticket-statuses>

Description for each field: ticket status object fields reference