Disconnect a site's Git repository
import requests
url = "https://platform.ankra.app/api/v1/org/pages/sites/{site_name}/git"
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/pages/sites/{site_name}/git', 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/pages/sites/{site_name}/git \
--header 'Authorization: Bearer <token>'{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"reason": "<string>",
"code": "<string>",
"message": "<string>",
"missing_sha256": [
"<string>"
]
}Pages
Disconnect a site's Git repository
Stops the site deploying from its repository. Its aliases keep serving what the repository deployed. Needs applications.deploy.
DELETE
/
api
/
v1
/
org
/
pages
/
sites
/
{site_name}
/
git
Disconnect a site's Git repository
import requests
url = "https://platform.ankra.app/api/v1/org/pages/sites/{site_name}/git"
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/pages/sites/{site_name}/git', 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/pages/sites/{site_name}/git \
--header 'Authorization: Bearer <token>'{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"reason": "<string>",
"code": "<string>",
"message": "<string>",
"missing_sha256": [
"<string>"
]
}Authorizations
Response
The repository is disconnected. What it deployed stays live.