---
title: Events
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Waiting Rooms](https://developers.cloudflare.com/api/go/resources/waiting_rooms)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Events

##### [List events](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/methods/list)

client.WaitingRooms.Events.List(ctx, waitingRoomID, params) (\*V4PagePaginationArray\[[Event](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events

##### [Event details](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/methods/get)

client.WaitingRooms.Events.Get(ctx, waitingRoomID, eventID, query) (\*[Event](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### [Create event](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/methods/create)

client.WaitingRooms.Events.New(ctx, waitingRoomID, params) (\*[Event](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>), error)

POST/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events

##### [Update event](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/methods/update)

client.WaitingRooms.Events.Update(ctx, waitingRoomID, eventID, params) (\*[Event](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### [Patch event](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/methods/edit)

client.WaitingRooms.Events.Edit(ctx, waitingRoomID, eventID, params) (\*[Event](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>), error)

PATCH/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### [Delete event](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/methods/delete)

client.WaitingRooms.Events.Delete(ctx, waitingRoomID, eventID, body) (\*[EventDeleteResponse](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events%20%3E%20(model)%20EventDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Event struct{…}

</summary>

ID stringOptional

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CreatedOn TimeOptional

formatdate-time

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

CustomPageHTML stringOptional

If set, the event will override the waiting room’s <code>custom_page_html</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20custom_page_html">Link to this property</a>

Description stringOptional

A note that you can use to add more details about the event.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

DisableSessionRenewal boolOptional

If set, the event will override the waiting room’s <code>disable_session_renewal</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20disable_session_renewal">Link to this property</a>

EventEndTime stringOptional

An ISO 8601 timestamp that marks the end of the event.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20event_end_time">Link to this property</a>

EventStartTime stringOptional

An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event’s configuration. The start time must be at least one minute before <code>event_end_time</code>.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20event_start_time">Link to this property</a>

ModifiedOn TimeOptional

formatdate-time

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

Name stringOptional

A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

NewUsersPerMinute int64Optional

If set, the event will override the waiting room’s <code>new_users_per_minute</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>total_active_users</code> property is also set.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20new_users_per_minute">Link to this property</a>

PrequeueStartTime stringOptional

An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before <code>event_start_time</code>.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20prequeue_start_time">Link to this property</a>

QueueingMethod stringOptional

If set, the event will override the waiting room’s <code>queueing_method</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20queueing_method">Link to this property</a>

SessionDuration int64Optional

If set, the event will override the waiting room’s <code>session_duration</code> property while it is active. If null, the event will inherit it.

maximum30

minimum1

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20session_duration">Link to this property</a>

ShuffleAtEventStart boolOptional

If enabled, users in the prequeue will be shuffled randomly at the <code>event_start_time</code>. Requires that <code>prequeue_start_time</code> is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the <code>queueing_method</code> during the event respects ordering such as **fifo**, or else the shuffling may be unnecessary.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20shuffle_at_event_start">Link to this property</a>

Suspended boolOptional

Suspends or allows an event. If set to <code>true</code>, the event is ignored and traffic will be handled based on the waiting room configuration.

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

TotalActiveUsers int64Optional

If set, the event will override the waiting room’s <code>total_active_users</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>new_users_per_minute</code> property is also set.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20total_active_users">Link to this property</a>

<details>

<summary>

TurnstileAction EventTurnstileActionOptional

If set, the event will override the waiting room’s <code>turnstile_action</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

const EventTurnstileActionLog EventTurnstileAction = "log"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_action%20%3E%20(member)%200">Link to this property</a>

const EventTurnstileActionInfiniteQueue EventTurnstileAction = "infinite\_queue"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_action">Link to this property</a>

<details>

<summary>

TurnstileMode EventTurnstileModeOptional

If set, the event will override the waiting room’s <code>turnstile_mode</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

const EventTurnstileModeOff EventTurnstileMode = "off"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%200">Link to this property</a>

const EventTurnstileModeInvisible EventTurnstileMode = "invisible"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%201">Link to this property</a>

const EventTurnstileModeVisibleNonInteractive EventTurnstileMode = "visible\_non\_interactive"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%202">Link to this property</a>

const EventTurnstileModeVisibleManaged EventTurnstileMode = "visible\_managed"

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode">Link to this property</a>

</details>

[Link to this property](<#(resource)%20waiting_rooms.events%20%3E%20(model)%20event%20%3E%20(schema)>)

#### EventsDetails

##### [Preview active event details](https://developers.cloudflare.com/api/go/resources/waiting_rooms/subresources/events/subresources/details/methods/get)

client.WaitingRooms.Events.Details.Get(ctx, waitingRoomID, eventID, query) (\*[EventDetailGetResponse](<https://developers.cloudflare.com/api/go/resources/waiting_rooms#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20EventDetailGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/waiting\_rooms/{waiting\_room\_id}/events/{event\_id}/details

##### ModelsExpand Collapse

<details>

<summary>

type EventQuery struct{…}

</summary>

EventEndTime string

An ISO 8601 timestamp that marks the end of the event.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20event_end_time">Link to this property</a>

EventStartTime string

An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event’s configuration. The start time must be at least one minute before <code>event_end_time</code>.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20event_start_time">Link to this property</a>

Name string

A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

CustomPageHTML stringOptional

If set, the event will override the waiting room’s <code>custom_page_html</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20custom_page_html">Link to this property</a>

Description stringOptional

A note that you can use to add more details about the event.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

DisableSessionRenewal boolOptional

If set, the event will override the waiting room’s <code>disable_session_renewal</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20disable_session_renewal">Link to this property</a>

NewUsersPerMinute int64Optional

If set, the event will override the waiting room’s <code>new_users_per_minute</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>total_active_users</code> property is also set.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20new_users_per_minute">Link to this property</a>

PrequeueStartTime stringOptional

An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before <code>event_start_time</code>.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20prequeue_start_time">Link to this property</a>

QueueingMethod stringOptional

If set, the event will override the waiting room’s <code>queueing_method</code> property while it is active. If null, the event will inherit it.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20queueing_method">Link to this property</a>

SessionDuration int64Optional

If set, the event will override the waiting room’s <code>session_duration</code> property while it is active. If null, the event will inherit it.

maximum30

minimum1

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20session_duration">Link to this property</a>

ShuffleAtEventStart boolOptional

If enabled, users in the prequeue will be shuffled randomly at the <code>event_start_time</code>. Requires that <code>prequeue_start_time</code> is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the <code>queueing_method</code> during the event respects ordering such as **fifo**, or else the shuffling may be unnecessary.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20shuffle_at_event_start">Link to this property</a>

Suspended boolOptional

Suspends or allows an event. If set to <code>true</code>, the event is ignored and traffic will be handled based on the waiting room configuration.

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

TotalActiveUsers int64Optional

If set, the event will override the waiting room’s <code>total_active_users</code> property while it is active. If null, the event will inherit it. This can only be set if the event’s <code>new_users_per_minute</code> property is also set.

maximum2147483647

minimum200

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20total_active_users">Link to this property</a>

<details>

<summary>

TurnstileAction EventQueryTurnstileActionOptional

If set, the event will override the waiting room’s <code>turnstile_action</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

const EventQueryTurnstileActionLog EventQueryTurnstileAction = "log"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_action%20%3E%20(member)%200">Link to this property</a>

const EventQueryTurnstileActionInfiniteQueue EventQueryTurnstileAction = "infinite\_queue"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_action">Link to this property</a>

<details>

<summary>

TurnstileMode EventQueryTurnstileModeOptional

If set, the event will override the waiting room’s <code>turnstile_mode</code> property while it is active. If null, the event will inherit it.

</summary>

One of the following:

const EventQueryTurnstileModeOff EventQueryTurnstileMode = "off"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%200">Link to this property</a>

const EventQueryTurnstileModeInvisible EventQueryTurnstileMode = "invisible"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%201">Link to this property</a>

const EventQueryTurnstileModeVisibleNonInteractive EventQueryTurnstileMode = "visible\_non\_interactive"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%202">Link to this property</a>

const EventQueryTurnstileModeVisibleManaged EventQueryTurnstileMode = "visible\_managed"

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)%20%3E%20(property)%20turnstile_mode">Link to this property</a>

</details>

[Link to this property](<#(resource)%20waiting_rooms.events.details%20%3E%20(model)%20event_query%20%3E%20(schema)>)