AI Studios - Professional History by Username

View as Markdown

POST: Get professional work experience history for a specific user by username. Returns a list of work experiences including job titles, companies, dates, and descriptions. Requires a publication URL in the POST body for access control. The username is provided as a path parameter. Returns work experiences ordered by most recent first.

Path parameters

usernamestringRequired
Username of the user whose work experiences to retrieve

Request

This endpoint expects an object.
urlstringRequired
Publication custom URL for access control

Response

Successfully retrieved user's work experiences
idintegerRead-only
uidstringRead-onlyformat: "uuid"
userobject
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: 1. Accessing the related `details` queryset on the IAMUser model 2. Extracting the ImageFieldFile from the first detail record 3. Converting it to a URL string for JSON serialization Usage: ```python class MyUserSerializer(ProfilePictureMixin, serializers.ModelSerializer): class Meta: model = User fields = ['id', 'username', 'profile_picture', ...] ``` Note: - This mixin expects the model to have a `details` related manager - The related detail should have a `profile_picture` ImageField - Returns None if no profile picture is found or an error occurs
titlestring<=255 characters
companystring<=255 characters
from_datedate
employment_type_displaystringRead-only
created_atdatetimeRead-only
to_datedate or null
locationstring or null<=255 characters
employment_typeenum or any or null
descriptionstring or null

Errors

400
Bad Request Error
404
Not Found Error