Enable/Disable job via API

yr2yr (5 posts)
February 9, 2009 09:40 PM
Accepted Answer
How do I enable or disable a job via API?
 - AdTempus Version 3.0.5
The ADTempus Console on the General Tab has an "Enabled" checkbox.  How do I turn that on or off via API?
Bill Staff (602 posts)
February 10, 2009 06:07 AM
Accepted Answer
I'm assuming you're already able to retrieve the job through the API. If not, see here for sample code for doing that.

Once you have the job, set the Held property to True or False and then save the job.

Beginning in 3.0.6 there are HoldJob and ReleaseJob methods that change Held and do the save for you. If a user has Hold/Release permission for the job but not Modify permission, you have to use HoldJob/ReleaseJob, because Save will fail with a permission error.
yr2yr (5 posts)
February 10, 2009 08:44 AM
Accepted Answer
Thank you - I saw the Held but didn't equate that to enable/disable - DUH!

Replies are disabled for this topic.