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.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Refresh usage aggregates for one usage window. Platform authority is required.
Media type application/json
object
window_kind
string
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"}Responses
Section titled “ Responses ”Usage aggregate refresh result.
Media type application/json
object
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"}default
Section titled “default ”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"}