Remove a GitHub Actions trust policy
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/oidc-trust-policies/{policy_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/organisation/oidc-trust-policies/{policy_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/organisation/oidc-trust-policies/{policy_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_tokens": 123
}Organisation IAM
Remove a GitHub Actions trust policy
Requires members.manage in the authenticated organisation; service accounts are refused. Creating a policy provisions its service account and refuses role escalation. Removing a policy revokes tokens issued by it. Browser mutations require the session CSRF token.
DELETE
/
api
/
v1
/
org
/
organisation
/
oidc-trust-policies
/
{policy_id}
Remove a GitHub Actions trust policy
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/oidc-trust-policies/{policy_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/organisation/oidc-trust-policies/{policy_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/organisation/oidc-trust-policies/{policy_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_tokens": 123
}