Skip to content

Create an event category

Request

Create an event category (and its associated subcategories). Once created, the category (and one of its subcategories) can be used to classify events.

Security
SessionKey(Required scopes: administrator)
Bodyapplication/json
namestringrequired

Unique name of the event category

subcategoriesArray of strings

List of subtypes associated with this category

curl -i -X POST \
  https://docs.ticketingevents.com/_mock/openapi/categories \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "name": "Party",
    "subcategories": [
      "Boat Cruise",
      "House Party",
      "Wedding"
    ]
  }'

Responses

The new category was successfully created.

Bodyapplication/json
selfstring

URI of the event category resource

namestring

Unique name of the event category

subcategoriesArray of objects

List of subcategories associated with this category

Response
{ "self": "/categories/16878141745207", "name": "Party", "subcategories": [ {}, {}, {} ] }