SiteScheduledJobs.changeJobDefinitionState (Method)

Changes the state of the specified job definition.

Returns:

Void

Arguments:

Name Type Required Description
jobDefinitionID PositiveInteger Required The ID of the job definition.
state JobDefinitionState Required The new state of the job definition (Available, Hidden or Suspended).

Context:

License Requirements (none)
Permission Requirements site:SiteAdmin
Deny Context ClusterROPS
Require Context (none)
Author Lock  

Error Codes:

Code Error Message
39005 The specified job definition is not a valid $1 level job definition.

Notes:

None