Rest API setSwitchLevel returns 422 HTTP response code

I’m POSTing to the smart things REST API with the below body and I get back the below 422 error response. Can someone please let me know how to get “setSwitchLevel” to work?

Request:

https://api.smartthings.com/v1/devices/**UUID_MASKED**/commands

{"commands":[{"component":"main","capability":"switchLevel","command":"setLevel","arguments":[{"level":1}]}]}

Response:

{"requestId":"E8D5E7D9-118A-43A6-842A-C446728AE5F1","error":{"code":"ConstraintViolationError","target":null,"message":"The request is malformed.","details":[{"code":"UnprocessableEntityError","target":"[0].arguments.[0]","message":"invalid NUMBER type","details":[]}]}}

Here’s the answer What does “invalid NUMBER type” mean?