OrganizationMembershipRequest
The OrganizationMembershipRequest
object is the model that describes the request of a user to join an organization.
Properties
Name | Type | Description |
---|---|---|
id | string | A unique identifier for this membership request. |
organizationId | string | The organization ID of the organization this request is for. |
status | 'pending' | 'accepted' | 'revoked' | The status of the request. |
publicUserData | PublicUserData | Public information about the user that this request belongs to. |
createdAt | Date | The date and time the membership request was created. |
updatedAt | Date | The date and time the membership request was updated. |
Methods
accept()
Accepts the request of a user to join the organization the request refers to.
function accept(): Promise<OrganizationMembershipRequest>;
accept()
returns
Type | Description |
---|---|
Promise<OrganizationMembershipRequest> | This method returns a Promise which resolves with an OrganizationMembershipRequest instance. |
reject()
Rejects the request of a user to join the organization the request refers to.
function reject(): Promise<OrganizationMembershipRequest>;
reject()
returns
Type | Description |
---|---|
Promise<OrganizationMembershipRequest> | This method returns a Promise which resolves with an OrganizationMembershipRequest instance. |
Last updated on December 4, 2023