Create a new user on your platform with specified details and optional group/course assignments.
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
Request Body
Email of the user (must be unique across the site)
Alias or identifier of role to assign to user
User ID (alphanumeric unique identifier). Generated automatically if not provided.
Optional bio description for About me section
Timezone name in TZ format (e.g. “Europe/London”)
When true, user data can only be edited via API. Set false to allow web interface editing.
List of course IDs to assign to the user
Timestamp for course assignment deadline
List of group IDs to add the user to
Custom user attributes specific to your site
Response
Interface language (de, en, es, fr, pl, pt, ru)
User avatarShow Image object properties
Error Responses
Returned when request validation failsShow Error object properties
Field-specific validation errors
curl --request POST \
--url 'https://YOURSITE.konstant.ly/openapi/v1/users' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv' \
--header 'Content-Type: application/json' \
--data '{
"name": "Jason Wunderliebb",
"email": "j.wunderliebb@mycompany.tld",
"password": "VerySecurePas$w0rd!",
"roleAlias": "learner",
"bio": "Hi folks! I love to sell and teach about sales.",
"occupation": "Associate",
"location": "London",
"timezone": "Europe/London",
"fromApi": false,
"courses": [110, 150],
"deadlineAt": 1234567890,
"groups": [2],
"attributes": {
"designation": 4,
"department": 15,
"mobile_number": "+44 0 144 44 444"
}
}'
{
"id": "1234567890",
"name": "Jason Wunderliebb",
"language": "en",
"occupation": "Associate",
"location": "London",
"timezone": "Europe/London",
"email": "j.wunderliebb@mycompany.tld",
"isBanned": false,
"role": {
"alias": "learner"
},
"fromApi": false,
"image": null,
"attributes": {
"designation": 4,
"department": 15,
"mobile_number": "+44 0 144 44 444"
}
}