コンテンツにスキップ

Update global logging settings

PUT
/api/admin/settings/logging
Code sample: Shell / cURL
curl --request PUT \
--url https://auth.example.com/api/admin/settings/logging \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "level": "info", "format": "json", "hash_user_id": true }'

Updates AUTHRIM_CONFIG KV overrides for log level, format, and user ID hashing. At least one valid field is required.

Media type application/json
object
level
string
Allowed values: debug info warn error
format
string
Allowed values: json pretty
hash_user_id
boolean
key
additional properties
Example
{
"level": "info",
"format": "json",
"hash_user_id": true
}

Logging settings updated.

Media type application/json
object
success
boolean
updated

Updated KV keys and values.

object
key
additional properties
string
note
string
key
additional properties
Example
{
"success": true,
"updated": {
"log_level": "info",
"log_format": "json",
"log_hash_user_id": "true"
},
"note": "Changes will take effect within 10 seconds (cache TTL)"
}

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"
}