HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: Milestone

Location: n/a

Formats: XML, JSON

Returns a milestone by id.

Params

No params available

Examples

Request JSON, using cURL utility:

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

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 19 Jul 2012 13:15:21 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

{
  "planner_type":0,
  "description":"sdfsd",
  "release_notes":null,
  "pretty_relese_level":"None",
  "release_level":null,
  "created_by":"bRxpnOMYWr4id7adbNA33N",
  "completed_date":null,
  "due_date":null,
  "is_completed":false,
  "title":"dsa",
  "created_at":"2011-07-26T08:09:25Z",
  "updated_at":"2012-05-30T09:12:14Z",
  "updated_by":"bgnP_qA1Gr2QjIaaaHk9wZ",
  "id":3,
  "user_id":null,
  "space_id":"b89TL8MYWr4id7adbNA33N"
}

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

Response

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

<?xml version="1.0" encoding="UTF-8"?>
<milestone>
  <planner-type type="integer">0</planner-type>
  <description>sdfsd</description>
  <release-notes nil="true"></release-notes>
  <pretty-relese-level>None</pretty-relese-level>
  <release-level nil="true"></release-level>
  <created-by>bRxpnOMYWr4id7adbNA33N</created-by>
  <completed-date nil="true"></completed-date>
  <due-date nil="true"></due-date>
  <is-completed type="boolean">false</is-completed>
  <title>dsa</title>
  <created-at type="datetime">2011-07-26T08:09:25Z</created-at>
  <updated-at type="datetime">2012-05-30T09:12:14Z</updated-at>
  <updated-by>bgnP_qA1Gr2QjIaaaHk9wZ</updated-by>
  <id type="integer">3</id>
  <user-id nil="true"></user-id>
  <space-id>b89TL8MYWr4id7adbNA33N</space-id>
</milestone>

Description for each field: milestone object fields reference