v2

latestOpenAPI 3.1.02026-08-01244220427.0 KB
Pass Templates > Images

Create Or Update Image Of Pass Template Of Type And Resolution

Create or Update Image of Pass Template of Type and Resolution

Creates or updates an image of a specific type and resolution for a pass template.

Parameters:

  • type (PassImageType): The type of the image.
  • resolution (PassImageResolution): The resolution of the image.
  • image (UploadFile): The image file to upload.
  • template (Template): The pass template.
  • user (User): The currently authenticated user.

Returns:

  • dict: The serialized image data.
post/v2/templates/{templateId}/images/{type}/{resolution}

Path parameters

type'logo' | 'icon' | 'strip' | 'footer' | 'background' | 'thumbnail' required

Supported images Boarding pass: logo, icon, footer Coupon: logo, icon, strip Event ticket: logo, icon, strip, background, thumbnail If you specify a strip image, do not specify a background image or a thumbnail. Generic: logo, icon, thumbnail Store card: logo, icon, strip

Args: StrEnum (type): description

resolution'normal' | 'high' | 'ultra' required
string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593

Headers

authorizationstring nullable

Response

Successful Response

{"stackTrail":"paths:/v2/templates/{templateId}/images/{type}/{resolution}:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}