v1
latestOpenAPI 3.1.02026-08-04164270844.7 KBCreate an invited user
🔑
Required OAuth scope: users:write.
Creates a new user account with the invited status. If a user with the same 'mail' or 'username' was previously deleted, this operation will restore their account to an invited status.
If 'mail' is provided, the user receives an invitation email upon creation to activate their account, along with other emails. The account can also be activated via the 'Activate a user' endpoint. If 'sendInvitationEmail' is set to false, the user will not receive the invitation email, but may still receive other emails.
Query parameters
If true (or not provided), the invitation email is sent to the created user. If false, the invitation email is not sent.
Headers
The version of the API.
Request body
Example request
{
"mail": "john.smith@yopmail.com",
"username": "johnsmith",
"membership": {
"groupId": "507f1f77bcf86cd799439011"
},
"primaryGroupId": "507f1f77bcf86cd799439011",
"custom": "Half-time worker",
"firstName": "John",
"lastName": "Smith",
"job": "Boss",
"organization": "360Learning",
"phone": "+33123456789"
}Response
Returns the previously deleted user, who has been successfully restored to an invited status.
Example response
{
"_id": "507f1f77bcf86cd799439011",
"mail": "john.smith@yopmail.com",
"username": "johnsmith",
"firstName": "John",
"lastName": "Smith",
"job": "Engineer",
"organization": "360Learning",
"phone": "+33123456789",
"custom": "Half-time worker",
"primaryGroupId": "507f1f77bcf86cd799439011",
"profileImageId": "507f1f77bcf86cd799439011"
}