Remove a repository's AI review rule from a source-control binding
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repo-overrides"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repo-overrides', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repo-overrides \
--header 'Authorization: Bearer <token>'{
"success": true,
"provider": "<string>",
"binding_external_id": "<string>",
"repo_full_name": "<string>",
"removed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Environment
Remove a repository's AI review rule from a source-control binding
Organisation admin only. Removes one repository’s rule so the repository follows the binding-level settings again. removed is false when the repository had no rule.
DELETE
/
api
/
v1
/
org
/
ai-gateway
/
scm-bindings
/
{provider}
/
{binding_external_id}
/
repo-overrides
Remove a repository's AI review rule from a source-control binding
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repo-overrides"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repo-overrides', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repo-overrides \
--header 'Authorization: Bearer <token>'{
"success": true,
"provider": "<string>",
"binding_external_id": "<string>",
"repo_full_name": "<string>",
"removed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The source-control provider of the binding: github, gitlab or bitbucket.
The provider's own id of the binding: the GitHub App installation id, the GitLab or Bitbucket credential id.
Query Parameters
The repository whose rule to remove, as owner/repository.