Create new user
POST/v1/users
Create user is currently restricted to creating a user with a 'Member' role
Request
- application/json
Body
required
username must be unique in an organization
Possible values: non-empty
and <= 255 characters
, Value must match regular expression (?=^[\p{L}])(?=^[\p{L}\d_]*$)
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
- application/json
- Schema
- Example (from schema)
Schema
{
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The error message
Bad Request
The error code
BAD_REQUEST
issues
object[]
An array of issues that were responsible for the error
{
"code": "BAD_REQUEST",
"message": "Bad Request",
"issues": []
}
Invalid Credentials
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The error message
Invalid Credentials
The error code
UNAUTHORIZED
issues
object[]
An array of issues that were responsible for the error
{
"code": "UNAUTHORIZED",
"message": "Invalid Credentials",
"issues": []
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The error message
Unauthorized
The error code
FORBIDDEN
issues
object[]
An array of issues that were responsible for the error
{
"code": "FORBIDDEN",
"message": "Unauthorized",
"issues": []
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The error message
Not Found
The error code
NOT_FOUND
issues
object[]
An array of issues that were responsible for the error
{
"code": "NOT_FOUND",
"message": "Not Found",
"issues": []
}
Internal Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The error message
Internal Error
The error code
INTERNAL_SERVER_ERROR
issues
object[]
An array of issues that were responsible for the error
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal Error",
"issues": []
}