Assigns a new user to a tasks by email invitation.

For the invitation, the role of the user has to be specified. The user is then invited to the workspace and assigned to the task. The user will receive an email with the invitation link, as well as a redirect to the task. The new user will replace any currently existing task assignments.

Required Permissions
Any authenticated user.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
taskIdUUIDRequired
The id of the task.
emailstringRequiredformat: "email">=1 character
The email of the new user.
roleIdUUIDRequired
The id of the role to which the new user should be added.
firstNamestring or nullOptional
The first name of the user to be invited.
lastNamestring or nullOptional
The last name of the user to be invited.
genderenumOptional
The gender of the user to be invited. Could be 'male', 'female', 'other'
Allowed values:

Response

OK