Create a new user​
Create a new user
- application/json
Request Body required
user object
name stringThe users name
email emailEmail
type stringPossible values: [
NeprofileUser
,NeaccessUser
]Default value:
NeprofileUser
The user type
profile_id uuidThe user profile_id
title stringThe user title
status stringPossible values: [
Active
,Disabled
]The user status
login stringThe user login
admin booleanDefault value:
false
Is the user an admin
group_strings stringThe users group strings
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
user object
id uuidThe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
The uid
name stringThe name
email emailThe email
type stringPossible values: [
NeprofileUser
,NeaccessUser
]Default value:
NeprofileUser
The type
title stringThe title
status stringPossible values: [
Active
,Disabled
]The status
login stringThe login
last_login date-timeThe last login time
cookies_accepted_at date-timeThe time the cookies were accepted at
preferred_language stringThe preferred language
{
"user": {
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"name": "bob",
"email": "[email protected]",
"type": "NeprofileUser",
"title": "mytitle",
"status": "Active",
"login": "bob",
"last_login": "2023-05-01T09:12:28Z",
"cookies_accepted_at": "2023-05-01T09:12:28Z",
"preferred_language": "en-US"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- error
- error
- errors
oneOf
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
- error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...