Create a badge template
Creates a badge template for the edition (design data is opaque JSON consumed by the badge renderer). Set origin to "staff" for the edition's staff-only design (ticket_type_id must be absent); at most one staff template per edition. The actor must be an owner or admin of the event.
/editions/{edition_id}/badgesCreates a badge template for the edition (design data is opaque JSON consumed by the badge renderer). Set origin to "staff" for the edition's staff-only design (ticket_type_id must be absent); at most one staff template per edition. The actor must be an owner or admin of the event.
Authorization
bearerAuth JWT issued by IdentityX, signed with Ed25519
In: header
Path Parameters
Edition ID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for badge template creation. Mirrors models.CreateBadgeTemplateRequest.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/editions/497f6eca-6276-4993-bfeb-53cbbbba6f08/badges" \ -H "Content-Type: application/json" \ -d '{ "name": "Standard Badge", "design_data": { "background": "#1b2a4a" } }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"edition_id": "aeda7fca-56fe-426a-8c37-1876faaaf005",
"ticket_type_id": "eca4fbe0-9707-40d2-b5fb-9c6a9e458262",
"origin": "staff",
"name": "string",
"design_data": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 400,
"title": "Validation Failed"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 401,
"title": "Unauthenticated"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 403,
"title": "Insufficient Role"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 404,
"title": "Not Found"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 500,
"title": "Internal Server Error"
}