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:
value means that you can set the value for each Pass;label means that you can set the lable for each Pass;changeMessage means that you can set a different change message for each pass.In the same array you get the field type if it isn't a String:
date means that the field is a date and you must write the value in the ISO8601 format;time means that the field is a time and you must write the value in the ISO8601 format;currency means that the field represent money and you must write the value in the ISO4217 format;number means that the field is a number.Besides the array fields you can get another array with the images that can be set for each Pass:
thumbnail means that you can upload a thumbnail for each Pass.curl -i https://api.passdock.com/api/v1/templates/fields?api_token=75778a65dfdae310a107d2ef0bbd3780
{
"fields": [
{
"year": [
"value",
"date"
]
},
{
"name": [
"value",
"label",
"changeMessage"
]
}
],
"images": [
"thumbnail"
]
}
| Param name | Description |
|---|---|
|
id required |
Template ID Value: Must be Fixnum |
|
api_token required |
Your Passdock API key Value: Must be String |