Create a favorite
POST/favorites
Creates a favorite entry for the current user referencing the given item. The id must be set, otherwise a 400 is returned, and it has to resolve to an existing hierarchy node - either by node id or by the referenced object's id - matching the given type, otherwise a 404 is returned. Returns the saved favorite.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- default
The saved favorite
the default error response
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Entity not found.
the default error response