Create or replace a scoped GitHub automation binding
POST
/v1/github/automations/bindingsOrganization bindings require an owner or administrator. A project binding may target only a repository in that Project's resource scope.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
None.
Query parameters
None.
Header parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Computer-Agents-Organization | header | string | No | Active organization context. If omitted, the authenticated user's personal organization is used. |
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| scopeType | organization | project | function | web_app | skill | Yes | — |
| scopeId | string | Yes | — |
| repositoryFullName | string | Yes | — |
| kind | security_scan | pull_request_review | deploy_function | deploy_web_app | sync_skill | Yes | — |
| enabled | boolean | No | — |
| configuration | object | No | — |
| configuration.events | string[] | No | — |
| configuration.branches | string[] | No | — |
| configuration.pathIncludes | string[] | No | — |
| configuration.pathExcludes | string[] | No | — |
| configuration.agentId | string | No | Agent ID. |
| configuration.environmentId | string | No | Computer ID. |
| configuration.instructions | string | No | — |
| configuration.publishReview | boolean | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Saved automation bindingapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| binding | object | Yes | — |
| binding.id | string | Yes | Unique identifier. |
| binding.scopeType | organization | project | function | web_app | skill | Yes | — |
| binding.scopeId | string | Yes | — |
| binding.organizationId | string | Yes | — |
| binding.userId | string | Yes | User ID. |
| binding.createdByUserId | string | Yes | — |
| binding.repositoryFullName | string | Yes | — |
| binding.githubRepositoryExternalId | string | Yes | — |
| binding.githubInstallationExternalId | string | Yes | — |
| binding.kind | security_scan | pull_request_review | deploy_function | deploy_web_app | sync_skill | Yes | — |
| binding.enabled | boolean | Yes | — |
| binding.configuration | object | Yes | — |
| binding.configuration.events | string[] | No | — |
| binding.configuration.branches | string[] | No | — |
| binding.configuration.pathIncludes | string[] | No | — |
| binding.configuration.pathExcludes | string[] | No | — |
| binding.configuration.agentId | string | No | Agent ID. |
| binding.configuration.environmentId | string | No | Computer ID. |
| binding.configuration.instructions | string | No | — |
| binding.configuration.publishReview | boolean | No | — |
| binding.createdAt | string | Yes | ISO 8601 timestamp. |
| binding.updatedAt | string | Yes | ISO 8601 timestamp. |
404Resource not foundapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| error | string | No | — |
409The repository is not connected through the active organization GitHub App
None.
503PostgreSQL control plane is required
None.
Create or replace a scoped GitHub automation binding
Loading...
Response 201
Loading...