Create a Workflow Job Template for an Organization
post
/api/v2/organizations/{id}/workflow_job_templates/
Make a POST request to this resource with the following workflow job template fields to create a new workflow job template associated with this organization.
name: Name of this workflow job template. (string, required)-
description: Optional description of this workflow job template. (string, default="") -
extra_vars: (json, default=``) -
survey_enabled: (boolean, default=False) allow_simultaneous: (boolean, default=False)ask_variables_on_launch: (boolean, default=False)inventory: Inventory applied as a prompt, assuming job template prompts for inventory (id, default=``)limit: (string, default="")scm_branch: (string, default="")ask_inventory_on_launch: (boolean, default=False)ask_scm_branch_on_launch: (boolean, default=False)ask_limit_on_launch: (boolean, default=False)webhook_service: Service that webhook requests will be accepted from (choice)"": ---------github: GitHubgitlab: GitLab
webhook_credential: Personal Access Token for posting back the status to the service API (id, default=``)
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : schema
Type:
Show Source
object-
allow_simultaneous(optional):
boolean
-
ask_inventory_on_launch(optional):
boolean
-
ask_limit_on_launch(optional):
boolean
-
ask_scm_branch_on_launch(optional):
boolean
-
ask_variables_on_launch(optional):
boolean
-
description(optional):
string
-
extra_vars(optional):
string
-
inventory(optional):
integer
Inventory applied as a prompt, assuming job template prompts for inventory
-
limit(optional):
string
-
name:
string
-
organization(optional):
integer
The organization used to determine access to this template.
-
scm_branch(optional):
string
-
survey_enabled(optional):
boolean
-
webhook_credential(optional):
integer
Personal Access Token for posting back the status to the service API
-
webhook_service(optional):
string
Service that webhook requests will be accepted from