Skip to main content

Add a favorite

POST 

/api/v1/favorites

Marks a file or folder as one of the caller's favorites and returns the favorite's id. Favorites are private to the caller. path is relative to the owner's storage, not a /home/… resource path: with shareId it is relative to the share root, otherwise to the storage named by owner. Adding the same item twice returns the existing favorite's id. path is not checked to exist. The caller must be able to read the item: owner must be the caller or a group folder they belong to (any role), and a share must be one they receive. An unknown group folder returns 403.

Request​

Responses​

Id of the new or existing favorite.