PUT /api/sam/admin/config/keepdays
Set number of days for SAM to store metrics and alerts
Description
This method replaces the current value of the KeepDays configuration property with the one provided.
To use this endpoint, you must log in as a user with access to the %SAM.Admin resource.
Request Example
PUT http://localhost:8080/api/sam/admin/config/keepdays
The packet provided must have the same schema as the one returned by GET /api/sam/admin/config/keepdays, for example:
{
"KeepDays": 30
}
KeepDays must have a value between 1 and 30 inclusive.
Response Example
If the request packet is incorrectly formatted, the request will fail with a status code of 422 Unprocessable Entity.