Toggles the favorite state of an entity for the given user. If no matching favorite exists for theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Daniel-Stojanovski/finkiopendesk/llms.txt
Use this file to discover all available pages before exploring further.
(userId, targetId, targetType) combination, the server creates and returns a new UserFavorite record. If a matching record already exists, it is deleted and the response body is null. This toggle design lets clients call the same endpoint for both save and unsave actions without needing to track state themselves.
This endpoint is publicly accessible. No
Authorization header is required.Request
Path parameters
The identifier of the user for whom the favorite is being toggled. Must match the user’s UUID stored in the system (e.g.,
a1b2c3d4-e5f6-7890-abcd-ef1234567890).Request body
Identifier of the entity to favorite or unfavorite — for example, a subject code (
"OS") or a profession identifier ("SE").Category of the target entity. Accepted values are:
"subject"— a course or subject offered at FCSE."profession"— a profession or career track."channel"— a discussion channel.
Response
When a favorite is created, returns the newUserFavorite object with HTTP 200 OK.
When a favorite is removed, returns null with HTTP 200 OK.
Unique identifier for the newly created favorite record (UUID v4). Present only when a record was created.
UUID of the user who owns this favorite.
Identifier of the favorited entity, echoed from the request body.
Type of the favorited entity, echoed from the request body.
Display name of the favorited entity, resolved at request time. This is a transient field not stored in the database; it may be
null.The uniqueness constraint on
(userId, targetId, targetType) means a user cannot have duplicate favorites for the same entity. Calling this endpoint twice in succession with the same body first adds, then removes the record.