Users - Delete
This endpoint will irrevocable remove a user from the Cogniac system. Only the given user, or a tenant administrator can delete a user object.
Delete User ID
While the keyword 'current' is accepted in most tenant and user endpoints, when deleting tenants or user it is best practice to pass a valid ID to ensure the correct resources are being removed with the proper authentication.
DELETE /1/users/{user_id}
Host: https://api.cogniac.io
Example: Delete a User
curl -X DELETE https://api.cogniac.io/1/users/2ke2daisdflkj \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz"
import requests
my_headers = {"Authorization": "Bearer abcdefg.hijklmnop.qrstuvwxyz"}
res = requests.delete("https://api.cogniac.io/1/users/2ke2daisdflkj",
headers=my_headers)
HTTP 204 Code (with no body)
Updated over 6 years ago