import requests
url = "https://api.diga.io/v1/project/{project_id}/member/{profile_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"status": "error",
"error_code": "CANNOT_REMOVE_LAST_ADMIN",
"message": "Cannot remove the last admin from project 550e8400-e29b-41d4-a716-446655440000"
}Remove a member from the project permanently.
import requests
url = "https://api.diga.io/v1/project/{project_id}/member/{profile_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"status": "error",
"error_code": "CANNOT_REMOVE_LAST_ADMIN",
"message": "Cannot remove the last admin from project 550e8400-e29b-41d4-a716-446655440000"
}