Get Started
API backend
API system
More information

GET api/2.0/files/favorites/{fileId} This function requires authentication

Description

Changes the favorite status of the file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID `0
favorite
sent in body
Specifies if this file is marked as favorite or not Bool value true
Example
GET api/2.0/files/favorites/{fileid}
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "favorite": true
}
Returns

Boolean value: true - the file is favorite, false - the file is not favorite