Unmonitoring episodes via the API

Sonarr version (exact version): 4.0.11.2680
Mono version (if Sonarr is not running on Windows): N/A
OS: Windows 10
Debug logs: N/A
Description of issue:

Hi,

I have recently set up a new instance of Sonarr, all is fine except I want any shows to be unmonitored once downloaded, and I can’t figure out the format to do it ia curl/the api

Please can anyone advise the correct formatting?

below is a working command to rescan in my post processing script

curl http://127.0.0.1:9091/api/V3/command -X POST -H “Content-Type:application/json” -d “{"name":"RescanSeries","seriesId":%sonarr_series_id%}” --header “X-Api-Key:xxx”

Thanks
PJ