Set retention policy
Update the log retention policy for a namespace
PUT
Update the log retention policy for a namespace. Logs older than the retention period are automatically purged.
Path parameters
namespace
type: string
requiredThe namespace (user or organization) to set the retention policy for.
Body parameters
retention_days
type: integer
requiredNumber of days to retain logs. Minimum `1`, maximum `365`.
Previous → Get retention policy
Next Create a token →