Skip to main content
PUT
Update a source-control binding's AI review switches

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

provider
string
required

The source-control provider of the binding: github, gitlab or bitbucket.

binding_external_id
string
required

The provider's own id of the binding: the GitHub App installation id, the GitLab or Bitbucket credential id.

Body

application/json
ai_review
boolean
required
mention_replies
boolean
required
pr_previews
boolean | null

Omitted keeps the stored value.

merge_when_green
boolean | null

Switches merge-when-green on for the binding. Omitted keeps the stored value. The binding's AI mode must also be Agent for a request to be honoured.

review_model
string | null

An organisation model-catalog key; the empty string inherits the platform default; omitted keeps the stored value.

review_drafts
boolean | null

Omitted keeps the stored value.

max_reviews_per_pr
integer | null

0 means no cap; omitted keeps the stored value.

custom_instructions
string | null

The empty string clears it; omitted keeps the stored value.

Response

Successful Response

success
boolean
required
provider
string
required
binding_external_id
string
required
ai_review
boolean
required
mention_replies
boolean
required
pr_previews
boolean
merge_when_green
boolean
review_model
string
review_drafts
boolean
max_reviews_per_pr
integer
custom_instructions
string