HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: TicketAssociation

Location: n/a

Formats: XML, JSON

Returns an association of a ticket.

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/_ticket_number/ticket_associations/_id.json

Response

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

{
  "relationship":0,
  "created_at":"2012-04-18T11:28:48Z",
  "id":30,
  "ticket1_id":2153,
  "ticket2_id":2
}

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/_ticket_number/ticket_associations/_id.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Mon, 16 Jul 2012 10:52:53 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<ticket-association>
  <ticket1-id type="integer">2153</ticket1-id>
  <created-at type="datetime">2012-04-18T11:28:48Z</created-at>
  <relationship type="integer">0</relationship>
  <id type="integer">30</id>
  <ticket2-id type="integer">2</ticket2-id>
</ticket-association>

Description for each field: ticket association object fields reference page