Hi Dojo,
sometimes the start date + time of an already created scheduled task needs to be updated, so I use the update task API like described here.
But when I only want to update the start date + time, do I only need to set the task id, start date and start run time in the first general info string array? In the example from the UpdateTask API Link, the comments in general info mention (empty = no change), so I guess only the fields which need to be updated have to be set, right?
And the repeat actions and final actions object array can stay empty when nothing updated in both?
Thanks,
David
Hi David,
The comments don't seem to be entirely correct, we will look into improving that.
I did a quick test, and you cannot skip the task type neither the enabled on the general info array, and you need to pass the complete information for the repeat actions and final actions arrays.
Yes, is still better to update that delete and create again.
Hi Jorge,
thanks for your answer and that you will look into the documentation.
Okay so the API is not what I expect. But it still makes sense to update a task instead of deleting and creating the task again, e.g. because of performance reasons?
maybe that's why the new / pre-released Scheduler API only provides a CreateOrUpdateSchedulerTask method 🙂
https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryScheduler.html#methods
Regards,
David