PPylon Developers
ApiTickets

Regenerate credential

Regenerates the entry credential (barcode) for a ticket. The previous credential is revoked.

POST
/api/v1/tickets/{id}/regenerate-credential
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/problem+json

curl -X POST "https://loading/api/v1/tickets/497f6eca-6276-4993-bfeb-53cbbbba6f08/regenerate-credential"
{
  "ticketId": "e3e3e8ea-b02a-4536-85a2-a9c90f4ee74f",
  "newCredentialId": "5ea57ade-13c1-43a5-81a8-f94d01cb0980",
  "newBarcode": "string"
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}