POST /api/../inviteenduserandassignprojectmember

Sends an invitation, based on an environment policy, and assigns a specific project member user to be the owning project member for the end user.

If the policy you want to assign is associated with more than one blueprint (usually the case), use InviteEndUserAndAssignProjectMemberToBlueprint instead, which enables you to specify which blueprint the end user’s environment should be based on.

Request Path

POST /api/v3/invitations/actions/inviteenduserandassignprojectmember

Request Payload

{
    "policyId": "POLs3J1NEAESn7ipYMwYq20Q2",
    "owningProjectMemberId": "VPvcJta67Wp3TuDw-j4PhAiQ2"
    "opportunity": "my company inc.",
    "validForDays": 7,
    "email": "HudsonKaiden@cloudshare.com",
    "firstName": "Hudson",
    "lastName": "Kaiden",
    "regionId": "REKolD1-ab84YIxODeMGob9A2"
}

Parameters

policyId The ID of the policy to assign to the environment created for the end user
OwningProjectMemberId The ID of the project member user to whom the end user will be assigned
opportunity The name of the business opportunity to be associated with the end user
validForDays The number of days to keep the invitation valid for
email The recipient’s email. The invitation will be sent to the specified email.
firstName The recipient’s first name
LastName The recipient’s last name
regionId Optional. The region in which to create the environment. A list of available regions can be obtained from here. The default region is US East (Miami).

Response Example

{
    "invitationDetailsUrl": "https://use.cloudshare.com/Ent/Vendor/InvitationDetails.aspx?inv=ZEMeSj6RxMU",
    "acceptInvitationUrl": "https://use.cloudshare.com/Ent/AcceptInvitation.mvc?inv=ZEMeSj6RxMU",
    "message": "An invitation was sent successfully"
}