Pass Management V2
This API allows you to move a pass to another template that is part of the same project.
Move a pass to a different template
Move a pass to another template that is part of the same project.
Requirements for moving a pass:
- The pass must be part of a project (passes without a project cannot be moved)
- The target template must belong to the same project as the current template
- Both templates must use the same signing certificate
Path Parameters
- Name
identifier- Type
- string
- (mandatory)
- Description
The identifier of the pass that should be moved. Can be one of the following:
- Pass UID (system-generated UUID)
- Barcode value of the pass
- User-provided ID
- Auto-generated ID
- Name
targetTemplateIdentifier- Type
- string
- (mandatory)
- Description
The identifier of the template the pass should be moved to. The template must be part of the same project that the current template of the pass is part of.
Example URL
Request URL
https://app.passcreator.com/api/v2/pass/{identifier}/movetotemplate/{targetTemplateIdentifier}
Authorization
- Name
Authorization- Type
- string
- (mandatory)
- Description
HTTP Header containing your API key. Replace yourApiKeyHere with your actual API key.
Example HTTP Header
HTTP header
POST /api/v2/pass/{identifier}/movetotemplate/{targetTemplateIdentifier} HTTP/1.1
Host: app.passcreator.com
Authorization: yourApiKeyHere
Returned values
A response object indicating the result of the move operation.
- Name
success- Type
- boolean
- (mandatory)
- Description
Indicates whether the operation was successful.
- Name
description- Type
- string
- (mandatory)
- Description
A human-readable description of the operation result.
- Name
errors- Type
- array
- (mandatory)
- Description
Array containing any error messages if the operation failed.
- Name
data- Type
- array
- (mandatory)
- Description
Additional data related to the operation (typically empty for this endpoint).
- Name
statusCode- Type
- integer
- (mandatory)
- Description
HTTP status code of the response.
Example Response
Success Response
{
"success": true,
"description": "Pass was moved to template with name Example template",
"errors": [],
"data": [],
"statusCode": 200
}
Code Examples
Here you can find examples of how to call this endpoint using different programming languages and tools. Each example shows the complete request including headers and authentication.
Replace the example pass and template identifiers with your actual identifiers and yourApiKeyHere with your actual API key.
Request Examples
curl -X POST https://app.passcreator.com/api/v2/pass/92c21f9a-4244-4adc-87f0/movetotemplate/5a47ad28-08f8-4263-b503 \
-H "Authorization: yourApiKeyHere"