Create a New User

Creates a new user object.

Log in to see full request history

Parameter URL

ParameterTypeRequiredDefault valueDescription
send_emailBooleanNofalseIf send_email is true, an email invitation will be sent to the user.

Returns

Returns a new user object if the call succeeded. If a Slemma account exists with the email address specified in the call, this call will simply add this user to a new team with the new Groupkey, Role and Type. The user can belong to any number of teams, but can be the owner of one team only.

The following are the examples of HTTP status codes including errors that API can generate

Response codesResponse сontentDescription
200 OKThe user objectThe user has been created successfully.
400 Bad RequestEmail cannot be emptyThe field "Email" cannot be empty.
400 Bad RequestInvalid email addressThe email address that was specified is invalid.
400 Bad RequestInvalid User Type:"IncorrectType"The 'Type' parameter that was specified is invalid.
400 Bad RequestInvalid user role:"IncorrectRole"The 'Role' parameter that was specified is invalid.
400 Bad Request'Clients' feature is inactive.You need the 'Clients' feature to be enabled for your account to create a new client.
400 Bad RequestCanCreate is not available for admins'CanCreate' parameter is not allowed for users with 'Admin' role. Admins have full access by default.
400 Bad RequestIncorrect user TypeThe 'Type' parameter that was specified doesn't match the corresponding group UserType .
400 Bad RequestAttribute not found, Key=112A team attribute wasn't found.
Query Params
boolean
Defaults to false

Optional boolean to send a welcome email to the user. If send_email is false, no email invitation will be sent to the user. This may be useful for white labeled apps that want to handle Slemma announcements themselves.

Body Params
string
required

User's email address.

string
required
Defaults to User

User role. The identifier of the role to give the user. 'Clients' can be a 'User' or a 'GroupAdmin' only. You can't create a team 'Owner'.

string
required
Defaults to User

User type. The identifier of the type to assign to the user.

string

First name of the user

string

Last name of the user

int32
Defaults to 0

The ID of an existing group to add this user to. The default value '0' adds the user without assigning them to any group.

Responses

Language
Credentials
Request
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain