Disables a workflow and sets the state of the workflow to disabled_manually. 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.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/repos///actions/workflows//disable'
Response Response Example
{}
Request
Path Params
owner
stringÂ
required
The account owner of the repository. The name is not case sensitive.
repo
stringÂ
required
The name of the repository. The name is not case sensitive.
workflow_id
stringÂ
required
The ID of the workflow. You can also pass the workflow file name as a string.