Invite a user
Invite a user to a Workspace by specifying username and the roles that the user will have in the organization.
This user is created and a User invited event is sent.
There is no additional action such as an email sent.
The following fields may be provided:
username(String) - Email of the invited username(String) - Name of the invited userorganisation(Object) - Defaults to the default Workspace of the requesting userroles(Array) - Assigns the Administrator role by default
If the invited user doesn’t exist, a new user is created and the organisation.id is their default Workspace.
If the invited user already exists, the user is assigned to the Workspace.
This fails if the Workspace feature isn’t enabled on the target organization’s tariff plan.
Authentication
AuthorizationBearer
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
Request
This endpoint expects an object.
username
name
organisation
roles
Response
User created successfully
id
username
name
organisation
roles
Errors
400
Bad Request Error
403
Forbidden Error
409
Conflict Error