HTTP Verb: GET

Available statuses: 200 OK, 204 No Content, 404 Not Found

Object: CustomField

Location: n/a

Formats: XML, JSON

Returns custom fields available for ticket tool installed on 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_fields.json

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Mon, 24 Sep 2012 11:19:17 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_fields.xml

Response:

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

<?xml version="1.0" encoding="UTF-8"?>
<custom-fields type="array">
  <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>
</custom-fields>

Description for each field: custom fields object fields reference