GET /v1/spaces/:space_id/ticket_components/:id
Ticket components API is deprecated. Please use custom fields.
HTTP Verb: GET
Available statuses: 200 OK, 404 Not Found
Object: TicketComponent
Location: n/a
Formats: XML, JSON
Returns a component.
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/_id.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":"NewComponent"
}
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/_id.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"?>
<component>
<name>NewComponent</name>
<id type="integer">16</id>
</component>
Description for each field: ticket components object fields reference page