Organization membership requests
These are methods on the Organization class that allow you to manage the membership requests for an organization.
getMembershipRequests()
Retrieves a list of membership requests for the currently active organization.
function getMembershipRequests(params?: GetMembershipRequestParams): Promise<PaginatedResources<OrganizationMembershipRequest>>;
GetMembershipRequestParams
Name | Type | Description |
---|---|---|
initialPage? | number | A number that can be used to skip the first n-1 pages. For example, if initialPage is set to 10, it is will skip the first 9 pages and will fetch the 10th page. |
pageSize? | number | A number that indicates the maximum number of results that should be returned for a specific page. |
status? | 'pending' | 'accepted' | 'revoked' | The status a request can have. |
Returns
Type | Description |
---|---|
Promise<PaginatedResponse<OrganizationMembershipRequest>> | This method returns a Promise which resolves with a list of OrganizationMembershipRequest objects. |