Skip to content

Invite User

POST
/v1/admin/users
curl --request POST \
--url http://localhost:8080/v1/admin/users \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "role": "example", "display_name": "example" }'
tenant_id
Any of:
string
Media type application/json
InvitePayload
object
email
required
Email
string format: email
role
required
Role
string
/^(tenant_admin|tenant_user)$/
display_name
Any of:
string
<= 128 characters
Example generated
{
"email": "hello@example.com",
"role": "example",
"display_name": "example"
}

Successful Response

Media type application/json
Response Invite User V1 Admin 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": {}
}
]
}