Skip to main content

Enable a workflow

Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.

PUT/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required
workflow_id path
required

The ID of the workflow. You can also pass the workflow file name as a string.

Responses

Response