GET api/2.0/files/favorites/{fileId}
Changes the favorite status of the file with the ID specified in the request.
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
|
GET api/2.0/files/favorites/{fileid}
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"favorite": true
}
Boolean value: true - the file is favorite, false - the file is not favorite