Skip to main content
Previous section

PUT /api/sam/admin/config/keepdays

Set number of days for SAM to store metrics and alerts


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 /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
Copy code to clipboard

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.

FeedbackOpens in a new window