Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit da06d42

Browse files
committed
Fix wrong method usage in updateRoomSettings and updateRoomMetadata
1 parent aa25114 commit da06d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/Upwork/api/Routers/Messages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public JSONObject sendMessageToRoom(String company, String roomId, HashMap<Strin
138138
* @return {@link JSONObject}
139139
*/
140140
public JSONObject updateRoomSettings(String company, String roomId, String username, HashMap<String, String> params) throws JSONException {
141-
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId + "/users/" + username, params);
141+
return oClient.put("/messages/v3/" + company + "/rooms/" + roomId + "/users/" + username, params);
142142
}
143143

144144
/**
@@ -151,7 +151,7 @@ public JSONObject updateRoomSettings(String company, String roomId, String usern
151151
* @return {@link JSONObject}
152152
*/
153153
public JSONObject updateRoomMetadata(String company, String roomId, HashMap<String, String> params) throws JSONException {
154-
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId, params);
154+
return oClient.put("/messages/v3/" + company + "/rooms/" + roomId, params);
155155
}
156156

157157
}

0 commit comments

Comments
 (0)