Delete Subjects
Completely removes a subject from the system.
Subject Deletion
Note that a subject still used in an application cannot be deleted.
DELETE /1/subjects/{subject_uid}
Host: https://api.cogniac.ioExample: Delete a Subject
curl -X DELETE https://api.cogniac.io/1/subjects/cat_123 \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz"import cogniac
cc = cogniac.CogniacConnection(username="test@cogniac.co",
password="myPassword",
tenant_id="63QhzFLc9tg4")
# retrieve the subject_uid to change
subject = cc.get_subject("cat_123")
subject.delete()
HTTP 204 Code (with no body)