HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: Tag

Location: n/a

Formats: XML, JSON

Retrieve a tag identified by an id.

Params

No options available

Examples

Request JSON, using cURL utility:

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

Response:

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

{
  "id":1,
  "name":"tickets",
  "space_id":"bcsn1KfUGr4Pf7XcWdifgZ",
  "state":2,
  "created_at":"2013-02-08T01:33:22-10:00",
  "updated_at":"2013-02-08T01:33:28-10:00"
}

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

Request XML, using cURL utility:

curl -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/tags/_id.xml

Response:

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

<?xml version="1.0" encoding="UTF-8"?>
<tag>
  <id type="integer">1</id>
  <name>tickets</name>
  <space-id>bcsn1KfUGr4Pf7XcWdifgZ</space-id>
  <state type="integer">2</state>
  <created-at type="datetime">2013-02-08T01:33:22-10:00</created-at>
  <updated-at type="datetime">2013-02-08T01:33:28-10:00</updated-at>
</tag>

Description for each field: tag object fields reference