Update Logs Time-to-Live (TTL) Settings
PUThttps://useast.api.elasticpath.com/v2/settings/logs-ttl
Update Logs Time-to-Live (TTL) Settings
Request
- application/json
Body
data LogsTtlrequired
Responses
- 200
- 400
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
{
"data": {
"days": 10,
"type": "string"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- bad-request-error
Schema
errors Error[]required
{
"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
errors Error[]required
{
"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"
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://useast.api.elasticpath.com/v2/settings/logs-ttl' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"data": {
"days": 10,
"type": "string"
}
}'
ResponseClear