/agents/repos/{owner}/{repo}/automationsCreate an automation for a repository
Creates a new automation in a repository. User-owned automations remain private to their creator. Repository-owned automations are visible to anyone with read access to the repository and manageable by anyone with write access to the repository.
Fine-grained access tokens for "Create 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 configuration to create.
A 400 is returned: Bad request. A 401 is returned: Authentication required. A 403 is returned: Insufficient permissions. A 404 is returned: Resource not found. A 422 is returned: Validation Failed.