Update Logs Time-to-Live (TTL) Settings
PUT/v2/settings/logs-ttl
Update Logs Time-to-Live (TTL) Settings
Request
- application/json
Body
data LogsTtlrequired
days integer
Possible values: >= 1
and <= 365
The number of days to retain the logs. Allowed values are between 1 and 365.
type stringrequired
The type of the object. Always equal to time_to_live
.
Responses
- 200
- 400
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
days integer
Possible values: >= 1
and <= 365
The number of days to retain the logs. Allowed values are between 1 and 365.
type string
The type of the object. Always equal to time_to_live
.
{
"data": {
"days": 10,
"type": "string"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- bad-request-error
Schema
- Array [
- ]
errors Error[]required
title stringrequired
A brief summary of the error.
status stringrequired
The HTTP response code of the error.
detail string
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Required field missing
{
"errors": [
{
"title": "Bad Request",
"status": "400",
"detail": "Validation failed: field 'Type' on the 'ttl-type' tag."
}
]
}
Internal server error.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
title stringrequired
A brief summary of the error.
status stringrequired
The HTTP response code of the error.
detail string
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}
Loading...