https://api.passslot.com/v1/templates/:id
PUT https://api.passslot.com/v1/templates/2
{
"id": 2,
"name": "Megatron Coupon",
"passType": "pass.example.id2",
"description": {
"logoText": "Megatron",
"foregroundColor": "#ffffff",
"backgroundColor": "rgb(60, 65, 76)",
"coupon": {
"primaryFields": [
{
"key": "offer",
"label": "Any Apple Hardware",
"value": "30% off"
}
],
"auxiliaryFields": [
{
"key": "expires",
"label": "EXPIRES",
"value": "4 weeks"
}
]
}
}
}
{
"id": 2,
"name": "Megatron Coupon",
"passType": "pass.example.id2",
}
| HTTP Method | PUT |
| API Version | 1 |
| Requires Authentication? | Yes |
| Request Format | JSON |
| Request Object | Pass Template |
| Response Format | JSON |
| Response Object | Short Pass Template |