createTemplate
Create a template
Creates a new pass template in draft status.
Scope: templates:manage
Maps to OpenAPI operationId createTemplate — POST /manage-templates.
Same PassFast HTTP API, billing, and rate limits. Do not invent other paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable template name. | |
| x_app_id | No | Override X-App-Id for this call. Defaults to the MCP connection header. | |
| structure | Yes | Complete pass structure. Drives both Apple `pass.json` emission and Google Wallet class/object JSON. Fields are grouped below by platform, but the single JSONB object carries all of them for dual-wallet templates. | |
| pass_style | Yes | Apple Wallet pass style. | |
| description | No | Optional description of the template. | |
| field_schema | No | Optional JSON schema for validating dynamic data. | |
| wallet_types | No | ||
| icon_image_id | No | ||
| logo_image_id | No | ||
| strip_image_id | No | ||
| google_pass_type | No | Google Wallet class type override. If unset, PassFast auto-maps from the Apple `pass_style` (+ `structure.transitType` for boardingPass): - `generic` → generic - `storeCard` → loyalty (or giftCard via override) - `eventTicket` → eventTicket - `coupon` → offer - `boardingPass` + transitType PKTransitTypeAir → flight - `boardingPass` + transitType Train/Bus/Boat/Generic → transit | |
| thumbnail_image_id | No | ||
| background_image_id | No | ||
| google_logo_image_id | No | ||
| google_wide_logo_image_id | No |