Add a ticket type
POST
/events/{id}/ticket-types
At most 20. A free event's types are $0 (free_event_price); the value of the dinner is at most the price; "only with a code" needs access_code; "members of a host community" needs a community host (no_host_community); a "one day each" event gives each type its day (day_required, unknown_day).
Authorizations
BearerAuth
In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.
Type
HTTP (bearer)
Parameters
Path Parameters
id*
The event's id.
Type
Requiredstring
Format
"uuid"Request Body
application/json
JSON
{
"name": "string",
"description": "string",
"price_cents": 0,
"goods_value_cents": 0,
"seats_per_ticket": 0,
"quantity": 0,
"sales_start": "string",
"sales_end": "string",
"min_per_order": 0,
"max_per_order": 0,
"access": "string",
"access_code": "string",
"hidden": true,
"event_day_id": "string"
}
Responses
The type.
application/json
JSON
"string"