The members area has 3 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
membersList
List the team’s members
- Request:
GETon/v1/tenants/{tenantId}/members
membersList(args: { tenantId: string }, options?: CallOptions): Promise<Record<string, unknown>>membersRemove
Remove a member from the team (deletion class)
- Request:
DELETEon/v1/tenants/{tenantId}/members/{memberId} - Needs an approval for agents: class
deletion
membersRemove(args: { tenantId: string; memberId: string }, options?: CallOptions): Promise<Record<string, unknown>>membersRole
Change a member’s role (policy class)
- Request:
PATCHon/v1/tenants/{tenantId}/members/{memberId} - Needs an approval for agents: class
policy_change
membersRole(args: { tenantId: string; memberId: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<Record<string, unknown>>