Delete a GitHub credential
import requests
url = "https://platform.ankra.app/api/v1/org/credentials/github/{credential_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/credentials/github/{credential_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/credentials/github/{credential_id} \
--header 'Authorization: Bearer <token>'{
"marked_for_deletion_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Credentials
Delete a GitHub credential
Marks a GitHub credential for deletion. A credential that cluster GitOps repositories still reference is refused, or the references are repointed to replacement_credential_id when it is given. Requires credentials.delete, checked against the token’s scopes and the member’s role; a member narrowed to a project needs it at organisation scope for an organisation-wide credential.
DELETE
/
api
/
v1
/
org
/
credentials
/
github
/
{credential_id}
Delete a GitHub credential
import requests
url = "https://platform.ankra.app/api/v1/org/credentials/github/{credential_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/credentials/github/{credential_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/credentials/github/{credential_id} \
--header 'Authorization: Bearer <token>'{
"marked_for_deletion_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}