Create a user

post/users
Request
Request Body schema: application/json

request

username
required
string [ 1 .. 100 ] characters [a-zA-Z0-9\p{L}@.\-_]+

Username

firstName
required
string [ 1 .. 50 ] characters

First name

lastName
required
string [ 1 .. 50 ] characters

Last name

email
required
string [ 5 .. 255 ] characters [a-zA-Z0-9.!#$%&'\*\+\/=?^_`{|}~-]+@[a-zA-Z0-...

Email address

telephoneNumber
string [ 1 .. 100 ] characters

Telephone number

mobileNumber
string [ 1 .. 30 ] characters

Mobile telephone number

contractOwnerId
integer

Contract Owner identifier (Optional Contract Owner to associate the user to. If they are associated to a Contract Owner then they will only be able to see and manage that Contract Owner's data)

enabled
boolean
Default: true

User is enabled

userRoles
required
Array of integers
Responses
200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Request samples
application/json
{
  • "username": "string",
  • "firstName": "string",
  • "lastName": "string",
  • "email": "annon@annon.com",
  • "telephoneNumber": "string",
  • "mobileNumber": "string",
  • "contractOwnerId": 1,
  • "enabled": true,
  • "userRoles": [
    • 1
    ]
}
Response samples
application/json
{
  • "id": 1,
  • "username": "string",
  • "firstName": "string",
  • "lastName": "string",
  • "email": "annon@annon.com",
  • "telephoneNumber": "string",
  • "mobileNumber": "string",
  • "contractOwnerId": 1,
  • "enabled": true,
  • "userRoles": [
    • 1
    ]
}