Adding the parameter -ContentType application/json using Invoke-RestMethod let the request be processed correctly when body was parsed as JSON.
-ContentType application/json