Skip to content

Dispatches a workflow

POST
/repos/{owner}/{repo}/actions/workflows/{workflowfilename}/dispatches
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

workflowfilename
required
string

Name of the workflow

Media type application/json

DispatchWorkflowOption options when dispatching a workflow

object
inputs

Input keys and values configured in the workflow file.

object
key
additional properties
string
ref
required

Git reference for the workflow

string
return_run_info

Flag to return the run info

boolean

DispatchWorkflowRun is a Workflow Run after dispatching

DispatchWorkflowRun represents a workflow run

object
id

The workflow run id

integer format: int64
jobs

The jobs name

Array<string>
run_number

A unique number for each run of a repository

integer format: int64
Example generated
{
"id": 1,
"jobs": [
"example"
],
"run_number": 1
}

APIEmpty is an empty response

APINotFound is a not found error response

object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}