Skip to content

Cleanup Old Metrics

POST
/api/metrics/cleanup
curl --request POST \
--url 'https://example.com/api/metrics/cleanup?organization_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&days=1' \
--header 'Authorization: Bearer <token>'

Delete metrics older than specified days for the organization

organization_id
required
Organization Id
string format: uuid
days
required
Days

Delete metrics older than this many days

integer
>= 1 <= 365

Delete metrics older than this many days

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}