Skip to main content
POST
/
users
Creating a user
curl --request POST \
  --url https://api.qminder.com/v1/users \
  --header 'Content-Type: application/json' \
  --header 'X-Qminder-REST-API-Key: <api-key>' \
  --data '
{
  "email": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "roles": "<string>"
}
'
"{\n  \"statusCode\": 200,\n  \"id\": \"226859\"\n}"

Authorizations

X-Qminder-REST-API-Key
string
header
default:yourbusinessapikey
required

Body

email
string
required

The email address of the new user. They must be able to receive an e-mail. The maximum length is 100 characters.

firstName
string
required

The first name of the new user. The maximum length is 50 characters.

lastName
string
required

The last name of the new user. The maximum length is 50 characters.

roles
string<json>
required

Array of access roles for the user. The array must have at least one access role. Access roles are JSON objects with the following fields: type (string) Mandatory. The access level. Either "CLERK", "MANAGER", or "ADMIN". location (number) Optional. The location where to grant access. Mandatory for CLERK and MANAGER access levels.

Response

200 - application/json

200

statusCode
integer
default:0
Example:

200

id
string
Example:

"226859"