CompleteInvite()

Complete Invite

Description

Completes the invitation process of a user joining an organization.

Package Details

Interface

IServiceInvitationManager

Syntax

await ServiceInvitationManager.CompleteInvite(int userId, int serviceRequestId, string invitationCode);

Returns

Task<InviteCompletionContext>

API

Implementation Notes

Internal users must not be associated with any organizations.

POST
/api/v1/services/complete-invite

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

userId

User's id

query string

serviceRequestId

Service request id

query string

invitationCode

Invitation code

query string

Returns

200 OK - Invite Completion Context

Example

const int userId = 123; const int serviceRequestId = 1000; const string invitationCode = "abc123"; await ServiceInvitationManager.CompleteInvite(userId, serviceRequestId, invitationCode);