HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: Task

Location: n/a

Formats: XML, JSON

Returns a task by id.

Params

Not available

Examples

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/tasks/_id.xml

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 07 Sep 2012 13:08:42 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<user-task>
  <billed type="boolean">false</billed>
  <created-at type="datetime">2012-12-18T03:22:46Z</created-at>
  <ticket-number nil="true"></ticket-number>
  <space-id>b3gNxoscyr4Q7K5bfBjDYC</space-id>
  <begin-at type="datetime">2012-12-18T03:22:00Z</begin-at>
  <url nil="true"></url>
  <description>Description goes here</description>
  <updated-at type="datetime">2012-12-18T03:22:46Z</updated-at>
  <job-agreement-id nil="true"></job-agreement-id>
  <user-id>apr9bascyr4Q7K5bfBjDYC</user-id>
  <ticket-id nil="true"></ticket-id>
  <end-at type="datetime">2012-12-18T03:22:00Z</end-at>
  <hours type="decimal">1.0</hours>
  <id type="integer">8</id>
</user-task>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/tasks/_id.json

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 07 Sep 2012 13:12:30 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

{
  "billed": false,
  "created_at": "2012-12-17T08:52:20Z",
  "ticket_number": null,
  "space_id": "b3gNxoscyr4Q7K5bfBjDYC",
  "begin_at": "2012-12-17T08:51:00Z",
  "url": null,
  "description": "Description goes here",
  "updated_at": "2012-12-17T08:52:20Z",
  "job_agreement_id": null,
  "user_id": "apr9bascyr4Q7K5bfBjDYC",
  "ticket_id": null,
  "end_at": "2012-12-17T08:51:00Z",
  "hours": "1.0",
  "id": 7
}

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

Description for each field: Task object fields reference