🟢API for Subjects
This page contains description of subjects management via API.
A SaaS Subject is a unique end-user (person) that uses your application powered by Haut.AI technology, e.g., one of your customers or one of your study participants.
What can you do?
You can find more details on these actions in the Subject section of Swagger.
Clear subject's data (GDPR-related actions)
Create subject
Create a subject connected to your user (e.g. the user user1
connects to your app, you create a subject with the name user1
, so you can easily find all the images of this user), uniqueness of the subject is not required, but it's recommended to use unique subjects' names to identify users and their images along with results later easily.
Every subject has an internal id ID in SaaS (it looks like this 2fea742a-62ec-4a81-9729-9e0283f9c40c
), it's a good practice to have a mapping of our IDs to users within your app or platform.
Update subject
List subjects in dataset
Delete subject
If you delete a subject, you won't be able to upload images to it anymore. You must recreate subject to do it. Otherwise you would get an API error.
Delete a subject
Delete multiple subjects
Clear subject's data (GDPR-related actions)
Delete photos from storage
There are 2 types of objects in SaaS platform: Image file in Storage and Image record in Database.
Image file is the original image, uploaded by client - you - to SaaS platform.
Image record is a record in database, that contains links to:
Image file in storage
Associated objects like Metrics and Masks results and Aux Images
When you trigger "Delete photos from storage" action via API, SaaS deletes immediately Image files from Storage. But this action does not delete Image record, so all associated objects like Metrics and Masks results for this image and Aux Images for this image will NOT be deleted.
If Image file has been deleted, you will see "No photo" text on image, if you go to SaaS b2b Portal interface (SaaS > Datasets > Image) and open this image record.
Clear subject metadata
Last updated