HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: TicketComment

Location: n/a

Formats: XML, JSON

Returns a ticket comment.

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/_number/ticket_comments/_id.json

Response

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

{
  "ticket_changes":"--- []\n\n",
  "id":180,
  "created_on":"2012-04-09T09:15:54Z",
  "ticket_id":2,
  "comment":"fsfdsfsd",
  "updated_at":"2012-04-09T09:15:54Z",
  "user_id":"bgnP_qA1Gr2QjIaaaHk9wZ"
}

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

Resppnse

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Wed, 18 Jul 2012 11:50:27 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<ticket-comment>
  <updated-at type="datetime">2012-04-09T09:15:54Z</updated-at>
  <user-id>bgnP_qA1Gr2QjIaaaHk9wZ</user-id>
  <created-on type="datetime">2012-04-09T09:15:54Z</created-on>
  <ticket-changes>--- []
  </ticket-changes>
  <ticket-id type="integer">2</ticket-id>
  <id type="integer">180</id>
  <comment>fsfdsfsd</comment>
</ticket-comment>

Description for each field: ticket comments object fields reference page