rAPId api delete protected domain request removes domain but returns error status code and inadequate response message.
url = f"https://rapid.c-af.org/api/protected_domains/{domain}"
response = requests.delete(
url,
headers=headers
)
data = json.loads(response.content.decode("utf-8"))
For above code requests response code is 400 and response message is {'details': 'Subject 6hqkf3fqro7v7d8qtlg4nej98v not found in database'}
I tested it twice for existing domain. The message returned was identical. Despite the message domains were deleted.
rAPId api delete protected domain request removes domain but returns error status code and inadequate response message.
For above code requests response code is 400 and response message is {'details': 'Subject 6hqkf3fqro7v7d8qtlg4nej98v not found in database'}
I tested it twice for existing domain. The message returned was identical. Despite the message domains were deleted.