Skip to content

Modify admission token sections

Request

Update the event sections that the admission token can be used to grant entry to

Security
SessionKey(Required scopes: administrator)
Path
eventintegerrequired

Unique identifier of the requested event

tokenintegerrequired

Unique identifier of the requested admission token

Bodyapplication/json
sectionsArray of stringsrequired

List of sections this token can redeem tickets for.

curl -i -X PUT \
  'https://docs.ticketingevents.com/_mock/openapi/events/{event}/tokens/{token}' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "sections": [
      "/events/16993717817996/sections/16993964783416",
      "/events/16993717817996/sections/16993964783417"
    ]
  }'

Responses

The admission tokens associated sections were successfully updated.

Bodyapplication/json
selfstring, (uri)

URI of the token resource

codestring

The code used to uniquely identify this token in the system

globalboolean

Whether or not this is a global event token

sectionsArray of strings

List of sections this token can redeem tickets for.

Response
{ "self": "/events/16993717817996/tokens/17370490770235", "code": "A0F9GG8D", "global": true, "sections": [ "/events/16993717817996/sections/16993964783416", "/events/16993717817996/sections/16993964783417" ] }