Hello ChrisB,
It seems like you're trying to tidy up some test scheduled jobs in IoT Central. No worries, I can help with that!
To delete a scheduled job, you'll want to make an API call using the DELETE method. Unfortunately, it looks like the documentation you've provided has a slight error regarding the command to delete—it should be something like this:
DELETE https://{your app subdomain}.azureiotcentral.com/api/scheduledJobs/scheduled-Job-001?api-version=2022-07-31
Just replace {your app subdomain}
with your IoT Central app's specific subdomain and replace scheduled-Job-001
with the actual ID of the job you want to delete.
If you want to edit a scheduled job, you can use a PATCH request like below to update it:
PATCH https://{your app subdomain}.azureiotcentral.com/api/scheduledJobs/scheduled-Job-001?api-version=2022-07-31
And include the details you want to change in the body (like schedule timing or device group).
Here's an example of the request body to update the schedule:
{
"schedule": {
"start": "2022-10-24T22:29:01Z",
"recurrence": "weekly"
}
}
Make sure you adjust the "start" date and "recurrence" according to your needs.
Hope this helps!
Thank you!