Azure API Management
Azure Scheduler Rest API: Update Job - How to Remove advanced scheduling options? - Error: Schedules are not supported for recurrence unit 'Hour'
Hi Guys, I am using the Azure Scheduler REST API, and I am having a hard time updating one job recurrence from weekly/monthly to hourly. Specifically I get the following error: Schedules are not supported for recurrence unit 'Hour'. The problem is that the specific job used to have some advanced scheduling options, which of course I do not need if I want to update to hourly frequency. According to the official documentation if you do not include one field (in this case 'schedule'), the current value will be carried over. What I am trying to achieve is remove the field. I have tried not including the schedule field at all, including it with null value, including it with empty object or with all properties (hours, minutes etc.) set to null and in all cases I got a HTTP Bad Request with the error message above. Here's my job as returned by a get operation: { "id":"************", "type":"Microsoft.Scheduler/jobCollections/jobs", "name":"my-job-collection/my-job-id", "properties":{ "startTime":"2016-03-01T00:00:00Z", "action":{ /*....*/ }, "recurrence":{ "frequency":"week", "interval":4, "schedule":{ "minutes":[ 0 ], "hours":[ 12 ], "weekDays":[ "saturday" ] } }, "state":"enabled", "status":{ /*....*/ } } And here is the patch I am trying to submit: { "properties":{ "recurrence":{ "frequency":"hour" } } } /* or */ { "properties":{ "recurrence":{ "frequency":"hour", "schedule": null /* or {} or {"minutes": null, etc} or {"minutes": [], etc} */ } } } The API version I am using is 2016-01-01. Any help would be appreciated. Thank you.
Greetings, Please check the below link which is already replied in stack over flow by Mr. Jack Zeng . http://stackoverflow.com/questions/35862438/azure-scheduler-rest-api-update-job-error-schedules-are-not-supported-for-rec Regards,
Related Links
Best method to allow Unauthenticated access to API in Azure APIM
validate-jwt - Unable to create to obtain configuration
Client-Side Certificate Authentication with Azure and Apache/Rails
OAuth2 backend API to expose with basic authentication
Set a variable with JWT claim as value
Creating a Webservice in Azure
REST Api just heavily changed?
Azure Resource created by/ created at
Developer portal showing various Liquid errors
Is there REST API to Create/Update/Delete API Policies?
Azure Service Fabric Cluster with OWIN Stateless Web api.
eLogic Learning LMS - Configuring the Multi-Language feature with Azure Cognitive Services
APIM instance stuck on "updating" state after upgrading licens
401 error
Mutual Certificate Proxy Authentication
Call Azure Api from website