Revoke a stack profile share
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/shares/{share_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/stack-profiles/{profile_id}/shares/{share_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/stack-profiles/{profile_id}/shares/{share_id} \
--header 'Authorization: Bearer <token>'{
"deleted": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stack Profiles
Revoke a stack profile share
Removes one share grant from a profile your organisation owns; the other organisation loses access to it.
DELETE
/
api
/
v1
/
org
/
stack-profiles
/
{profile_id}
/
shares
/
{share_id}
Revoke a stack profile share
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/shares/{share_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/stack-profiles/{profile_id}/shares/{share_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/stack-profiles/{profile_id}/shares/{share_id} \
--header 'Authorization: Bearer <token>'{
"deleted": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}