Create a new user
POST/user
Create a new user
Request
- application/json
Body
required
user
object
The user name
The user email
Possible values: [NeprofileUser
, NeaccessUser
]
Default value: NeprofileUser
The user type
The user profile id
The user description
Possible values: [Active
, Disabled
]
The user status
The user login
The user group strings
The locale the user prefers to use
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
user
object
ID of the object to retrieve or update
Possible values: >= 32 characters
and <= 32 characters
UID of the user
The name
The email
Possible values: [NeprofileUser
, NeaccessUser
]
Default value: NeprofileUser
Type of user
The title
Possible values: [Active
, Disabled
]
Status of the user
The login
When the user last logged in
When cookies were accepted
The locale the user prefers to use
The locale the user prefers to use
{
"user": {
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "user1",
"name": "myusername",
"email": "[email protected]",
"type": "NeprofileUser",
"title": "Director",
"status": "Active",
"login": "myLogin",
"last_login": "Wed, 07 Feb 2024 12:55:20.456682000 EST -05:00",
"cookies_accepted_at": "Wed, 07 Feb 2024 12:55:20.456682000 EST -05:00",
"preferred_language": "fr-CA",
"locale": "fr-CA"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- InvalidJson
- ValidationErrors
oneOf
{}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the error
{
"error": "Sorry something went wrong"
}