Skip to main content

Update Logs Time-to-Live (TTL) Settings

PUT 

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

Update Logs Time-to-Live (TTL) Settings

Request

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

OK

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.

Authorization: http

name: bearerAuthtype: httpscheme: bearer
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"
}
}'
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
Body
{
  "data": {
    "days": 10,
    "type": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!