Fuselage
Favorite/Unfavourite a Room
REST API Favorite Methods
Favorite or unfavorite room.
URL
Requires Auth
HTTP Method
/api/v1/rooms.favorite
yes
POST

Payload

| roomId | GENERAL | Required | Room Id where to favorite or unfavorite. | | roomName | general | Optional | Room Name where to favorite or unfavorite. | | favorite | true/false | Required | The value to favorite(true)/unfavorite(false) room. |

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
-H "Content-Type: application/json" \
4
http://localhost:3000/api/v1/rooms.favorite \
5
-d '{ "roomId": "GENERAL", "favorite": true }'
Copied!

Example Result

1
{
2
"success": true
3
}
Copied!

Change Log

Version
Description
0.64.0
Added
Last modified 8mo ago
Export as PDF
Copy link
Edit on GitHub