Ticket components API is deprecated. Please use custom fields.

HTTP Verb: GET

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

Object: TicketComponent

Location: n/a

Formats: XML, JSON

Returns a list of components available for space.

Params

No params available

Examples

Request JSON, using cURL utility:

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

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Tue, 17 Jul 2012 11:59:43 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

[
  {
    "id":16,
    "name":"MyComponent"
  },
  ...
]

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/ticket_components.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Tue, 17 Jul 2012 12:01:23 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<components type="array">
  <component>
    <name>MyComponent</name>
    <id type="integer">16</id>
  </component>
  ...
</components>

Description for each field: ticket components object fields reference page