Create a Schedule Based on a Job
get
/api/v2/jobs/{id}/create_schedule/
Make a POST request to this endpoint to create a schedule that launches
the job template that launched this job, and uses the same
parameters that the job was launched with. These parameters include all
"prompted" resources such as extra_vars
, inventory
, limit
, etc.
Jobs that were launched with user-provided passwords cannot have a schedule created from them.
Make a GET request for information about what those prompts are and whether or not a schedule can be created.
Request
Supported Media Types
- application/json
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
Root Schema : JobCreateSchedule
Type:
Show Source
object
-
can_schedule:
string
Title:
Can schedule
Read Only:true
-
prompts:
string
Title:
Prompts
Read Only:true