Skip to main content

Overview

Workflow job templates chain multiple job templates, projects updates, and inventory updates together with conditional logic. They enable complex automation workflows with success/failure/always branching.

Endpoints

List Workflow Templates

Create Workflow Template

string
required
Workflow template name
string
Workflow description
integer
required
Organization ID
string
Workflow-level extra variables
boolean
default:"false"
Allow multiple instances to run simultaneously
boolean
default:"false"
Enable survey
boolean
Prompt for variables at launch
boolean
Prompt for inventory at launch
boolean
Prompt for limit at launch
boolean
Prompt for labels at launch
string
Enable webhook: github or gitlab
integer
Webhook credential ID

Retrieve Workflow Template

Links to related resources:
  • organization - Parent organization
  • workflow_jobs - Execution history
  • workflow_nodes - Workflow node definitions
  • schedules - Execution schedules
  • launch - Launch endpoint
  • webhook_key - Webhook configuration
  • webhook_receiver - Webhook URL
  • activity_stream - Activity log
  • notification_templates_* - Notification templates
  • survey_spec - Survey specification
  • access_list - Access list
  • object_roles - Available roles
  • labels - Associated labels
  • copy - Copy endpoint

Workflow Nodes

List Workflow Nodes

Create Workflow Node

integer
required
ID of job template, project, or inventory source
string
required
Unique identifier for the node
object
Node-level extra vars (overrides template vars)
integer
Node-level inventory override
string
Node-level limit
string
Job type override: run or check
boolean
default:"false"
Whether all parent nodes must complete before this node runs

Associate Node Relationships

Create success/failure/always relationships:

Launch Workflow

Returns a workflow_job object.

Survey Specification

Workflow Jobs

Schedules

Labels

Notifications

Object Roles

Available roles:
  • admin_role - Full workflow administration
  • execute_role - Launch workflows
  • read_role - View workflow details

Copy Workflow

Complete Example