Delete user from organisation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/user"
payload = {
"organisation_id": "<string>",
"user_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({organisation_id: '<string>', user_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/organisation/user', 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/user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organisation_id": "<string>",
"user_id": "<string>"
}
'{
"message": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation API
Delete user from organisation
DELETE
/
api
/
v1
/
org
/
organisation
/
user
Delete user from organisation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/user"
payload = {
"organisation_id": "<string>",
"user_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({organisation_id: '<string>', user_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/organisation/user', 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/user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organisation_id": "<string>",
"user_id": "<string>"
}
'{
"message": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.