Skip to content

Modify category details

Request

Update the details of the specified event category

Security
SessionKey(Required scopes: administrator)
Path
categoryintegerrequired

Unique identifier of the requested event category

Bodyapplication/json
namestringrequired

Unique name of the event category

subcategoriesArray of strings

List of subtypes associated with this category

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

Responses

The event category's details were successfully updated.

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": [ {}, {}, {} ] }