Skip to main content

Get Logs Time-to-Live (TTL) Settings

GET Get Logs Time-to-Live (TTL) Settings

https://useast.api.elasticpath.com/v2/settings/logs-ttl

Parameters

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe Bearer token required to get access to the API.

Request Example

curl -X GET https://useast.api.elasticpath.com/v2/settings/logs-ttl \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \

Javascript SDK

const MoltinGateway = require('@moltin/sdk').gateway
const client = MoltinGateway({
client_id: 'X'
})
client.Settings.GetLogsTtl().then(ttlSettings => {
// Do something
})

Response Example

200 OK

{
"data": {
"days": 10,
"type": "time_to_live"
}
}