An Azure hosted internet of things (IoT) application platform.
You can delete jobs in the IoT Central UI:
- Click on the job in the list of jobs:
- Click the Delete button:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I created a scheduled job in IoT Central as a test, one to check if I understood how to create and two to check it worked on a device in the lab before applying to remote devices. It worked, however I no longer need the test but I can't find any way to delete the job or edit it (scheduled time, frequency, device group etc). How do I delete a scheduled job or edit it to apply to a different device and change the scheduled time?
Chris
An Azure hosted internet of things (IoT) application platform.
You can delete jobs in the IoT Central UI:
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!