PUT
/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enableEnable 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.
OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
workflow_idintegerrequired
The ID of the workflow. You can also pass the workflow file name as a string.
204Response