HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: Ticket

Location: n/a

Formats: XML, JSON

Get a list of user and team reports available for the space.

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/custom_reports.json

Response

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

{
  "team_reports":
    [
      {
        "id":"7",
        "name":"FirstTeamReport"
      },
      {
        "id":"68",
        "name":"SecondTeamReport"
      }
    ],
  "user_reports":[]
}

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/custom_reports.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 21 Jun 2012 12:54:05 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<custom-reports>
  <user-reports type="array"/>
  <team-reports type="array">
    <team-report>
      <name>FirstTeamReport</name>
      <id>7</id>
    </team-report>
    <team-report>
      <name>SecondTeamReport</name>
      <id>68</id>
    </team-report>
  </team-reports>
</custom-reports>