Api event user set domain log retention
API Endpoint: api/event/user/set_domain_log_retention/
Description: Set the Domain logging retention period.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | Log Type | BACKUP, JOBS, LOGINS, SECURITY, SESSIONS or USERS |
| 1 | REQUIRED | (Integer number) | Retention period (in months) |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Boolean (Content was updated) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/user/set_domain_log_retention/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '[ "SESSIONS", 1 ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
body: '[ "SESSIONS", 1 ]'
};
fetch("https://engine.tygron.com/api/event/user/set_domain_log_retention/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));