Skip to content
POST
/admin/add-auth-function
curl --request POST \
--url https://example.com/admin/add-auth-function \
--header 'Content-Type: application/json' \
--header 'X-Tenzir-AdminKey: <X-Tenzir-AdminKey>' \
--data '{ "tenant_id": "example", "auth_fn": { "auth_fn": "auth_user", "user_id": "example" } }'
Media type application/json
AddAuthFunctionRequest
object
tenant_id
required
Tenant Id
string
auth_fn
required
Any of:
UserAuthFunction
object
auth_fn
Auth Fn
string
default: auth_user
Allowed value: auth_user
user_id
required
User Id
string

Successful Response

Media type application/json
Example generated
example

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
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}