API scheduled maintenance param checking

We still need to check the value in the data model method too, but this is an improvement. Fixes #240.