Skip to content

Create User

POST
/api/superadmin/users
curl --request POST \
--url https://example.com/api/superadmin/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "display_name": "", "first_name": "example", "last_name": "example", "password": "example", "is_superadmin": false, "org_id": "example", "org_role": "member", "team_id": "example" }'

Create a new user with optional password, org, and team assignment.

Media type application/json
CreateUserRequest
object
email
required
Email
string
display_name
Display Name
string
""
first_name
Any of:
string
last_name
Any of:
string
password
Any of:
string
is_superadmin
Is Superadmin
boolean
org_id
Any of:
string
org_role
Org Role
string
default: member
team_id
Any of:
string

Successful Response

Media type application/json
Response Create User Api Superadmin Users Post
object
key
additional properties
any
Example generated
{}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}