Skip to content

WebhookGroups

Defined in: src/webhooks/client.gen.ts:8

new WebhookGroups(_core): WebhookGroups

Defined in: src/webhooks/client.gen.ts:9

BrexCore

WebhookGroups

addMembers(id, body, options?): Promise<void>

Defined in: src/webhooks/client.gen.ts:18

Add Webhook Group Members

Adds members to webhook groups.

POST /v1/webhooks/groups/{id}/add_members

string

object[]

Description

The list of webhook group members to add to the group.

RequestOptions

Promise<void>


create(body, options?): Promise<{ id: string; name: string; }>

Defined in: src/webhooks/client.gen.ts:40

Create Webhook Group

Creates a webhook group.

POST /v1/webhooks/groups Sends an Idempotency-Key header: options.idempotencyKey, or an auto-generated UUID.

string

Description

The name for the webhook group.

Example

Some Webhook Group

RequestOptions

Promise<{ id: string; name: string; }>


delete(id, options?): Promise<void>

Defined in: src/webhooks/client.gen.ts:60

Delete Webhook Group

Deletes a webhook group and all its members.

DELETE /v1/webhooks/groups/{id}

string

RequestOptions

Promise<void>


get(id, options?): Promise<{ id: string; name: string; }>

Defined in: src/webhooks/client.gen.ts:76

Get Webhook Group

Gets a webhook group.

GET /v1/webhooks/groups/{id}

string

RequestOptions

Promise<{ id: string; name: string; }>


list(query?, options?): PagePromise<{ items: object[]; next_cursor?: string | null; }>

Defined in: src/webhooks/client.gen.ts:95

List Webhook Groups

Lists webhook groups.

GET /v1/webhooks/groups Await for a single page, or for await to iterate items across all pages.

string | null

Description

Cursor for pagination.

number

Description

Limit for pagination. If not provided, defaults to 100. Cannot be greater than 1000.

RequestOptions

PagePromise<{ items: object[]; next_cursor?: string | null; }>


listMembers(id, query?, options?): PagePromise<{ items: object[]; next_cursor?: string | null; }>

Defined in: src/webhooks/client.gen.ts:114

List Webhook Group Members

Lists the members currently in the specified webhook group.

GET /v1/webhooks/groups/{id}/members Await for a single page, or for await to iterate items across all pages.

string

string | null

Description

Cursor for pagination.

number

Description

Limit for pagination. If not provided, defaults to 100. Cannot be greater than 1000.

RequestOptions

PagePromise<{ items: object[]; next_cursor?: string | null; }>


removeMembers(id, body, options?): Promise<void>

Defined in: src/webhooks/client.gen.ts:133

Remove Webhook Group Members

Removes members from webhook groups.

POST /v1/webhooks/groups/{id}/remove_members

string

object[]

Description

The list of webhook group members to remove from the group.

RequestOptions

Promise<void>