Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (24 loc) · 1.29 KB

File metadata and controls

33 lines (24 loc) · 1.29 KB

Favorite/Unfavourite a Room

HTTP MethodURLRequires Auth
POST/api/v1/rooms.favoriteyes

Body Parameters

KeyExample ValueDescription
roomId* or roomName*ByehQjC44FwMeiLbXThe room ID.
favorite* trueA boolean to mark the room as favourite or not.

Example Call

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

Example Response

{
  "success": true
}

Change Log

Version Description
0.64.0 Added