Favourites API
Favourite Items - Add to favourites / Remove from favourites
OVERVIEW
Add to favourites / Remove from favourites API
Request URI
PUT /api/4/favourites?contenttype=files&contentid=102&favourite=0
Parameter Name | Value | Description |
---|---|---|
contentid | String |
This the content id of the required content. e.g blogid for contenttype=blog, taskid for contenttype=tasks |
contenttype | String |
|
favourite | int |
0 : Remove from favourites 1 : Add to favourites |
Response
If successful, the API returns the 200 status code.
If the operation fails, the API will return one of the following error codes
Response codes
CODE | MEANING |
---|---|
201 | Favourite items returned successfully |
400 | Problem with parameters |
401 | Unauthorized |
403 | Validation failed | Forbidden |
500 | Internal error occurred while returning comments |
In case of an error code other than 201, an error object will be returned in the format
Last Updated: Nov 08,2024
Comments
0 Comments