I'm trying to stop the environments for my app using the Mendix Stop Environment API (https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api#stop-environment)
Environment fails to stop. Any idea what should be different when using this api?
Request
curl --request POST \
--url https://deploy.mendix.com/api/1/apps/myapp/environments/Test/Stop \
--header 'accept: */*' \
--header 'mendix-apikey: xxxx-8b97-xxx-bbfb-xxxx' \
--header 'mendix-username: viral@mymail.com' \
Response Code:
500 Internal server error
Response:
{
"errorMessage": "Cannot stop app: RuntimeStopFailed",
"errorCode": "STOP_FAILED"
}