Is there a possible way to run the admin api method "Patch" through "Cloud Scheduler"?
My functionality works perfectly when run through the API Explorer.
w/ servingStatus as the updateMask and this as the request body
{
"servingStatus": "USER_DISABLED"
}
But if I run a request through the cloud scheduler, at the time I want it to run, I get a 404 error.
Target : HTTP
URL : https://appengine.googleapis.com/v1/apps/[APP-ID]/services/default/?updateMask=servingStatus
POST BODY :
{
"servingStatus": "USER_DISABLED"
}
It's possible I have the url syntax wrong but I couldn't find anything that differs than the one I got.
Note: My goal is to shutdown the server at the specific time.