Create a New User
POST/user-svc/user
Allows an authenticated administrator to create a new user with specified details.
Request
- application/json
Body
required
Create User Request
Array [
]
user
object
contacts
object[]
Contacts are used for login and identification purposes.
The unique identifier, which can be a URL.
Example values: "joe12" (singulatron username), "twitter.com/thejoe" (twitter url), "joe@joesdomain.com" (email)
If this is the primary contact method
Platform of the contact (e.g., "email", "phone", "twitter")
Value is the platform local unique identifier.
Ie. while the id
of a Twitter contact is twitter.com/thejoe
, the value will be only thejoe
.
For email and phones the id
and the value
will be the same.
This field mostly exists for display purposes.
Example values: "joe12" (singulatron username), "thejoe" (twitter username), "joe@joesdomain.com" (email)
Whether the contact is verified
Full name of the organization.
URL-friendly unique (inside the Singularon platform) identifier for the user
.
Responses
- 200
- 400
- 401
- 500
User created successfully
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}