Skip to content

PlatformGroupMethods

Methods attached to group objects returned by the Groups service.

Methods

delete()

delete(): Promise<void>

Deletes this group.

Returns

Promise<void>

Promise resolving when the group has been deleted


getMembers()

getMembers<T>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<PlatformGroupMember> : NonPaginatedResponse<PlatformGroupMember>>

Gets the local members of this group.

Type Parameters

Type Parameter Default type
T extends PaginationOptions PaginationOptions

Parameters

Parameter Type Description
options? T Pagination options

Returns

Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<PlatformGroupMember> : NonPaginatedResponse<PlatformGroupMember>>

Promise resolving to the group's members


update()

update(update: PlatformGroupUpdateOptions): Promise<PlatformGroupGetResponse>

Updates this group. The current name is filled in automatically when update.name is omitted (the API requires a name on every update).

Parameters

Parameter Type Description
update PlatformGroupUpdateOptions The fields to change

Returns

Promise<PlatformGroupGetResponse>

Promise resolving to the group as stored after the update