REST API endpoint for pausing a folder

I found this post which says

You need to send a PATCH to /rest/config/folders/id, where you replace id with the id of your folder and as data payload you send {"paused": true}

I will try it