Create or replace a scoped GitHub automation binding

POST/v1/github/automations/bindings

Organization 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
NameLocationTypeRequiredDescription
X-Computer-Agents-OrganizationheaderstringNoActive organization context. If omitted, the authenticated user's personal organization is used.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
scopeTypeorganization | project | function | web_app | skillYes
scopeIdstringYes
repositoryFullNamestringYes
kindsecurity_scan | pull_request_review | deploy_function | deploy_web_app | sync_skillYes
enabledbooleanNo
configurationobjectNo
configuration.eventsstring[]No
configuration.branchesstring[]No
configuration.pathIncludesstring[]No
configuration.pathExcludesstring[]No
configuration.agentIdstringNoAgent ID.
configuration.environmentIdstringNoComputer ID.
configuration.instructionsstringNo
configuration.publishReviewbooleanNo

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Saved automation bindingapplication/json
FieldTypeRequiredDescription
bindingobjectYes
binding.idstringYesUnique identifier.
binding.scopeTypeorganization | project | function | web_app | skillYes
binding.scopeIdstringYes
binding.organizationIdstringYes
binding.userIdstringYesUser ID.
binding.createdByUserIdstringYes
binding.repositoryFullNamestringYes
binding.githubRepositoryExternalIdstringYes
binding.githubInstallationExternalIdstringYes
binding.kindsecurity_scan | pull_request_review | deploy_function | deploy_web_app | sync_skillYes
binding.enabledbooleanYes
binding.configurationobjectYes
binding.configuration.eventsstring[]No
binding.configuration.branchesstring[]No
binding.configuration.pathIncludesstring[]No
binding.configuration.pathExcludesstring[]No
binding.configuration.agentIdstringNoAgent ID.
binding.configuration.environmentIdstringNoComputer ID.
binding.configuration.instructionsstringNo
binding.configuration.publishReviewbooleanNo
binding.createdAtstringYesISO 8601 timestamp.
binding.updatedAtstringYesISO 8601 timestamp.
404Resource not foundapplication/json
FieldTypeRequiredDescription
errorstringNo
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...
See the ACP quickstart and SDK flow