コンテンツにスキップ

Update tenant policy.

PUT
/api/admin/tenant-policy
Code sample: Shell / cURL
curl --request PUT \
--url https://auth.example.com/api/admin/tenant-policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "ifMatch": "3", "policy": { "profile": "human", "metadata": { "status": "active" } } }'

Update the tenant policy contract with optimistic locking. The ifMatch value is required and must match the current policy version.

X-Tenant-Id
string

Tenant selector for multi-tenant admin requests.

Media type application/json
object
ifMatch
required
string
policy
object
key
additional properties
key
additional properties
Example
{
"ifMatch": "3",
"policy": {
"profile": "human",
"metadata": {
"status": "active"
}
}
}

Tenant policy update response.

Media type application/json
object
policy
required
object
tenantId
required
string
version
required
integer
preset
string
profile
string
Allowed values: human ai_ephemeral
metadata
object
key
additional properties
key
additional properties
previousVersion
required
integer
_links
required
object
key
additional properties
string
key
additional properties
Example
{
"policy": {
"profile": "human"
}
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}