Manage jobs
To manage jobs (that is, create, update, and delete operations for jobs and their associated targets) using the Scripting SDK, follow these steps:
-
Create a job entity without any targets, and set its state to
Created. -
Create the job description entity.
-
Create all job targets using the Jobs API. Targets will be automatically linked to the job.
-
Update the job state to
Pending.
Use these steps for jobs with one target or multiple targets.
Note
These steps also apply when using the Web SDK or the REST API to manage jobs.
The following snippet provides an example of how to use the Scripting SDK to manage jobs.
Note
To use the Web SDK instead, replace MClient with client in the following code.