Resend invitation

POST/v1/directory/people/{person_id}/resend-invitation

Emails a new invitation to someone who hasn't accepted theirs yet.

Permission: identity:ResendInvitation. Changes need a sign-in that used a second factor.

Path parameters

Parameter Type Description
person_id string The person's ID.

Returns

200 OK

{
  "invitation_sent": true
}

Errors

Besides the errors every call can return:

Status When
404 No such resource in your organization.
409 They have already accepted their invitation.
503 The email couldn't be sent; try again.

Example

curl -X POST https://<company>.yotta.bot/v1/directory/people/8f0c2c1e-6b1a-4f3e-9a51-0c3d2f7e9b10/resend-invitation \
  -H "Authorization: Bearer $YOTTABOT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

With yottactl

yottactl org users resend-invitation 8f0c2c1e-6b1a-4f3e-9a51-0c3d2f7e9b10