REST API issue with routerboard/settings

Hello, try to use REST API to change /routerboard/settings

test with curl and got error

curl -k -u admin:1111 -X PATCH https://192.168.88.2/rest/system/routerboard/settings -H "content-type: application/json" --data "{\"auto-upgrade\": \"yes\"}"

{"error":500,"message":"Internal Server Error"}

Working with POST