create_job
Create a job in a watsonx project to run a notebook, script, or pipeline asset, optionally on a cron schedule.
Instructions
Wraps POST /v2/jobs?project_id=... — confirmed live. Request body is {"job": {...}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| job_type | Yes | e.g. 'notebook', 'script', or a product-defined type. NOTE: the confirmed live request body for the simple asset_ref shape has no literal `job_type` field — this input is forwarded as `asset_ref_type` only when `asset_ref` is omitted (the rich/product-specific job shape, e.g. Spark applications). | |
| schedule | No | Plain cron-expression string, e.g. '0 9 * * *' — confirmed live, NOT an object. | |
| asset_ref | No | Id of the project asset the job runs (script/notebook/pipeline). The simple, confirmed-live job shape. | |
| project_id | Yes | ||
| description | No | ||
| configuration | No | Fully opaque pass-through object — for the simple asset_ref shape this normalizes server-side to {'env_type': '', 'env_variables': []}; for the rich asset_ref_type shape (e.g. Spark) it carries the entire product-specific execution config (compute, spark_conf, application, ...) unverified/from an example request — this server does not interpret it either way, only forwards it. |