Save/Unsave Domain
Save/Unsave Domain
Provides endpoints to save, unsave, and list saved domains for the authenticated user. GET: List all saved domains. POST: Save a domain to user’s collection. DELETE: Remove a domain from user’s saved collection.
Response
List of saved domains
id
domain_id
created_by
Mixin to handle profile_picture serialization for WebSocket compatibility.
This mixin adds a SerializerMethodField for profile_picture that converts ImageFieldFile objects to URL strings, making them JSON serializable for WebSocket consumers.
The mixin intelligently handles profile pictures from IAMUserDetail by:
- Accessing the related
detailsqueryset on the IAMUser model - Extracting the ImageFieldFile from the first detail record
- Converting it to a URL string for JSON serialization
Usage:
Note:
- This mixin expects the model to have a
detailsrelated manager - The related detail should have a
profile_pictureImageField - Returns None if no profile picture is found or an error occurs
category
subcategory
co_creators
saved
metrics
workspace_id
publication
name
theme
summary
description
logo
Logo image for the domain (copied from experience)
cover
Cover image for the domain (copied from experience)
focus_area
visibility
public- Publicprivate- Privateteam- Teamorg- Organization
Allowed values:
is_draft
creation_status
not_started- Not Startedin_progress- In Progresscompleted- Completedfailed- Failed
Allowed values:
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error

