채팅방 수정 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Chatroom update API
Request
Method
PUT
URL
/api/chatroom/{userChatroomId}
Header
Method |
Parameter |
Description |
Content-Type |
application/json |
|
token |
{token} |
access token값 |
Path Variable
Parameter |
Type |
Description |
Required |
userChatroomId |
Long |
유저 채팅방 id |
Y |
Body
Field |
Type |
Description |
Required |
inputLock |
boolean |
채팅방 입력 창 잠금 여부 |
Y |
title |
String |
채팅방 이름. 최대 50글자로 제한 |
N |
imageUrl |
String |
채팅방 이미지 S3 URL |
N |
Response
Header
Method |
Parameter |
Description |
statusCode |
{statusCode} |
|
Body
Field |
Type |
Description |
status |
Integer |
응답 코드 |
message |
String |
응답 메세지 |
data |
Object |
수정된 채팅방 정보. data 참고 |
data
Field |
Type |
Description |
userChatroomId |
Long |
유저의 채팅방 id |
title |
String |
채팅방 이름 |
imageUrl |
String |
채팅방 이미지 S3 URL |
inputLock |
Boolean |
채팅방 입력 창 잠금 여부 |
SUCCESS example
{
"status": 200,
"messsage": "채팅방 수정 성공",
"data": {
"userChatroomId": 3,
"title": "DEV CAMP 플레임 팀",
"imageUrl": "https://flametalk-bucket.s3.ap-northeast-2.amazonaws.com/profile/flametalk_file1_20222621172609.JPG",
"inputLock": true
}
}
Error Code
Code |
Error Messsage |
400 |
Bad Request |
401 |
Unauthorized |
500 |
Server Error |
FAIL example
{
"status": 400,
"message": "잘못된 요청입니다.",
"error": "BAD_REQUEST",
"code": "BAD_REQUEST",
"timestamp": "2022-01-18T19:30:16.3072905",
}