Get editable fields for a desired Template.

You will get an array of editable fields. Each field is named with the key of the field. For each field you get an array of editable options:

In the same array you get the field type if it isn't a String:

Besides the array fields you can get another array with the images that can be set for each Pass:

Examples

curl -i https://api.passdock.com/api/v1/templates/fields?api_token=75778a65dfdae310a107d2ef0bbd3780

Supported Formats

json

Success Response:

200 Good Request
              
{
  "fields": [
    {
      "year": [
        "value",
        "date"
      ]
    },
    {
      "name": [
        "value",
        "label",
        "changeMessage"
      ]
    }
  ],
  "images": [
    "thumbnail"
  ]
}
          

Errors

401 Unauthorized
404 Template Not Found

Params

Param name Description
id
required

Template ID


Value: Must be Fixnum
api_token
required

Your Passdock API key


Value: Must be String