HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: CustomField

Location: n/a

Formats: XML, JSON

Returns a ticket custom field 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/tickets/custom_field/_id.json

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 20 Sep 2012 14:06:00 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

{
  "id":1,
  "space_tool_id":"dP3FZG_ber4B8UadbNA33N",
  "type":"Text",
  "title":"MyField",
  "order":null,
  "required":false,
  "hide":false,
  "default_value":"",
  "created_at":"2012-09-21T07:47:07Z",
  "updated_at":"2012-09-21T07:47:07Z"
}

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

Response:

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

<?xml version="1.0" encoding="UTF-8"?>
<custom-field>
  <id type="integer">1</id>
  <space-tool-id>dP3FZG_ber4B8UadbNA33N</space-tool-id>
  <type>Text</type>
  <title>MyField</title>
  <order nil="true"></order>
  <required type="boolean">false</required>
  <hide type="boolean">false</hide>
  <default-value></default-value>
  <created-at type="datetime">2012-09-21T07:47:07Z</created-at>
  <updated-at type="datetime">2012-09-21T07:47:07Z</updated-at>
</custom-field>

Description for each field: custom fields object fields reference