/agents/repos/{owner}/{repo}/automations/{automation_id}Edit an automation for a repository
Edits specified fields on an existing automation in a repository. Omitted fields
are left unchanged.
The automation's owner_type is immutable and cannot be changed by this operation.
Fine-grained access tokens for "Edit an automation for a repository"
This endpoint works with the following fine-grained token types:
The fine-grained token must have one of the following permission sets for each repository accessed by this request:
- "Agent tasks" repository permissions (read and write)
- "Contents" repository permissions (read and write)
The required permission set depends on each repository's Automation permission configuration.
GitHub App installation access tokens are not supported for this endpoint.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The automation fields to update. Omitted fields are left unchanged.
A 400 is returned: Bad request. A 401 is returned: Authentication required. A 404 is returned: Resource not found. A 422 is returned: Validation Failed.