コンテンツにスキップ

Refresh logging usage aggregates

POST
/api/admin/logging-policies/usage-aggregates/refresh
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/admin/logging-policies/usage-aggregates/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "window_kind": "hour", "window_start_at": 1770000000000, "tenant_id": "tenant_123" }'

Refresh usage aggregates for one window and optional tenant filter.

Refresh usage aggregates for one usage window. Platform authority is required.

Media type application/json
object
window_kind
string
Allowed values: hour day month
window_start_at
integer
tenant_key
string
tenant_id
string
key
additional properties
Example
{
"window_kind": "hour",
"window_start_at": 1770000000000,
"tenant_id": "tenant_123"
}

Usage aggregate refresh result.

Media type application/json
object
result
required
object
key
additional properties
audit_id
One of:
string
job_id
string
key
additional properties
Example
{
"result": {
"window_kind": "hour",
"window_start_at": 1770000000000,
"tenant_id": "tenant_123",
"tenant_key": "tenant_123",
"refreshed_count": 12,
"deleted_count": 0
},
"audit_id": "audit_123"
}

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