Create
Operation: Create
Creates a user account.
POST /api/v01/User/rest/Create Content-Type: application/json
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| UserData.FirstName | string | yes | First name |
| UserData.LastName | string | yes | Last name |
| UserData.UserID | string | one of two | Explicit login |
| UserData.UserIDGenerate | boolean | one of two | true — generate the login automatically |
| UserData.EmployeeID | string | no | Explicit employee ID |
| UserData.EmployeeIDGenerate | boolean | no | true — generate the employee ID |
| UserData.Email | string | yes | |
| UserData.InstanceID | string | no | Instance to bind to |
| UserData.AvatarURL | string | no | Avatar URL |
| UserData.Password | string | one of two | Explicit password |
| UserData.PasswordGenerate | boolean | one of two | true — generate the password |
| UserData.ChangeAfterFirstLogon | boolean | no | Require password change after first logon |
| UserData.SendEmailNotification | boolean | no | Send an email with generated credentials to the user |
| UserData.IntegrationID | string | no | External ID |
| UserData.KeyWord | string | no | Record type (defaults to 'Employee') |
| UserData.SpaceID | string | no | Initial space |
| UserData.Template | string | no | Invitation email template |
| UserData.Host | string | no | Host for links in the email |
| UserData.Roles | array<{RolesID}> | no | Global roles |
| UserData.Projects | array<{ProjectID, PermissionID}> | no | Initial project memberships |
| UserData.Teams | array<{TeamID, PermissionID}> | no | Teams |
| UserData.Spaces | array<{SpaceID}> | no | Additional spaces |
| UserData.UsersID | string | no | Alternative explicit UserID (for imports) |
Validation
- The request body must contain UserData (or the fields at the top level).
- First name, last name, and email are required (their absence results in a business error with the corresponding MessageCode).
Response
{
"status": "Success",
"statusCode": 200,
"details": {
"UserID": "0000001234",
"EmployeeID": "EMP001"
}
}
Example
POST /api/v01/User/rest/Create
Content-Type: application/json
{
"UserData": {
"FirstName": "John",
"LastName": "Smith",
"Email": "john.smith@company.com",
"UserIDGenerate": true,
"PasswordGenerate": true,
"ChangeAfterFirstLogon": true,
"SendEmailNotification": true,
"Roles": [{ "RolesID": "USER" }],
"Projects": [{ "ProjectID": "0000000123", "PermissionID": "MEMBER" }]
}
}