Create a Workflow Job for a Job Template

post

/api/v2/job_templates/{id}/slice_workflow_jobs/

Make a POST request to this resource with the following workflow job fields to create a new workflow job associated with this job template.

  • name: Name of this workflow job. (string, required)
  • description: Optional description of this workflow job. (string, default="")

  • workflow_job_template: (id, default=``)

  • extra_vars: (json, default=``)
  • allow_simultaneous: (boolean, default=False)

  • is_sliced_job: (boolean, default=False)

  • inventory: Inventory applied as a prompt, assuming job template prompts for inventory (id, default=``)
  • limit: (string, default="")
  • scm_branch: (string, default="")
  • webhook_service: Service that webhook requests will be accepted from (choice)
    • "": ---------
    • github: GitHub
    • gitlab: GitLab
  • webhook_credential: Personal Access Token for posting back the status to the service API (id, default=``)
  • webhook_guid: Unique identifier of the event that triggered this webhook (string, default="")

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

201 Response

Back to Top