Skip to main content

Add favorite for a user

POST 

/favorites/user/:id_user/:tablename/:id_item

Add an Entry Column favorite item to the system by its tablename, id_item, and id_user.

This will add the favorite item to the user's list of favorites. You can POST an empty body to this endpoint to add a favorite item.

Required abilities

Any user can add favorites for themselves by setting your own id_user in the request.

In order to add favorites for another user, you need the User - Modify ability on that user.

Request

Responses

Successful response; the favorite item has been added to the user's list of favorites.