Disconnect a repository
import requests
url = "https://platform.ankra.app/api/v1/org/pipelines/repositories/{repository_id}"
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/pipelines/repositories/{repository_id}', 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/pipelines/repositories/{repository_id} \
--header 'Authorization: Bearer <token>'Pipelines
Disconnect a repository
Disconnects a repository from Ankra Pipelines. Refused with 409 while one of its pipeline runs is queued or running. Needs pipelines.manage.
DELETE
/
api
/
v1
/
org
/
pipelines
/
repositories
/
{repository_id}
Disconnect a repository
import requests
url = "https://platform.ankra.app/api/v1/org/pipelines/repositories/{repository_id}"
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/pipelines/repositories/{repository_id}', 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/pipelines/repositories/{repository_id} \
--header 'Authorization: Bearer <token>'