The "scheduling.check-interval" syntax is a workaround for mgmt_cli. For a proper API call, 'scheduling' needs to contain an object, like this:
{
"enabled":"true",
"keep-sessions-by-days":"true",
"number-of-sessions-to-keep":"30",
"scheduling":{
"check-interval":"30",
"time-units":"days",
"start-date":"2022-09-05T16:46:00"
},
"number-of-days-to-keep":"14",
"keep-sessions-by-count":"false"
}
or as a single line:
{"enabled":"true","keep-sessions-by-days":"true","number-of-sessions-to-keep":"30","scheduling":{"check-interval":"30","time-units":"days","start-date":"2022-09-05T16:46:00"},"number-of-days-to-keep":"14","keep-sessions-by-count":"false"}