Skip to content

Create Repo Binding

POST /repo-bindings

Bind one repository to this workspace’s agents, limits and configuration.

FieldTypeNotes
installation_idintegerrequiredmin 1
repo_full_namestringrequiredmin length 1 max length 300
reviewer_agent_idstring (uuid) | nulloptional—
editor_agent_idstring (uuid) | nulloptional—
enabled_eventsstring[]optional—
review_configobjectoptional—
editor_configobjectoptional—
budget_configobjectoptional—
workspace_configobjectoptional—
is_activebooleanoptionalDefault true.
StatusDescriptionBody
201Successful ResponseRepoBindingView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/repo-bindings \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"installation_id": 0,
"repo_full_name": "string"
}'
FieldTypeNotes
idstring (uuid)required—
installation_idintegerrequired—
repo_full_namestringrequired—
reviewer_agent_idstring (uuid) | nullrequired, nullable—
editor_agent_idstring (uuid) | nullrequired, nullable—
enabled_eventsobject[]required—
review_configobjectrequired—
editor_configobjectrequired—
budget_configobjectrequired—
workspace_configobjectrequired—
is_activebooleanrequired—
organization_idstring (uuid)required—
workspace_idstring (uuid)required—
created_atstring (date-time)required—
updated_atstring (date-time)required—