Event Channels
An EventChannel is a named grouping of EventSubscriptions.
List Event Channels
SDK Method
EventChannel.list()
Return Object
EventChannel[]
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Additional Arguments
Show Event Channel
SDK Method
EventChannel.find()
Return Object
EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Method Arguments
| Argument | Description |
|---|---|
| id int64 Required | Event Channel ID. |
Create Event Channel
SDK Method
EventChannel.create()
Return Object
EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Method Arguments
| Argument | Default | Description |
|---|---|---|
| name string Required | Event Channel name. | |
| workspace_id int64 | 0 | Workspace ID. 0 means the default workspace. |
| description string | Event Channel description. | |
| enabled boolean | true | Whether this Event Channel can dispatch events. |
| default_channel boolean | false | Whether this Event Channel is the default destination for newly published events. |
Update Event Channel
SDK Method
eventChannel.update()
Return Object
EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Method Arguments
| Argument | Description |
|---|---|
| name string | Event Channel name. |
| workspace_id int64 | Workspace ID. 0 means the default workspace. |
| description string | Event Channel description. |
| enabled boolean | Whether this Event Channel can dispatch events. |
| default_channel boolean | Whether this Event Channel is the default destination for newly published events. |
Delete Event Channel
SDK Method
eventChannel.delete()
Return Object
No return value.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
The EventChannel Object
Some of the methods above return a EventChannel object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| id int64 | Event Channel ID |
| name string | Event Channel name. |
| workspace_id int64 | Workspace ID. 0 means the default workspace. |
| description string | Event Channel description. |
| enabled boolean | Whether this Event Channel can dispatch events. |
| default_channel boolean | Whether this Event Channel is the default destination for newly published events. |
| created_at date-time | Event Channel create date/time. |
| updated_at date-time | Event Channel update date/time. |