-
Notifications
You must be signed in to change notification settings - Fork 1
[PUT] 알람 설정
Gyunny edited this page Mar 16, 2021
·
3 revisions
메소드 | 경로 | 설명 |
---|---|---|
PUT | /users/alarm | 알람 설정 |
{
"Content-Type": "application/json",
"token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QzIiwibmFtZSI6Iu2FjOyKpO2KuCIsImlhdCI6MTU3NzczNTQwNSwiZXhwIjoxNTgwMzI3NDA1LCJpc3MiOiJPdW5jZV9TZXJ2ZXIifQ.V4hcw4bxwICn4p7nz15ToUw63ok-QmbIbWx7gvDMouI"
}
{
"alarmSet" : true
}
- alarmSet: true or false
{
"status": 200,
"message": "알람 변경 성공입니다"
}
- 유효하지 않은 토큰
{
"status": 401,
"message": "유효하지 않은 토큰값입니다"
}
- 토큰이 없을 때
{
"status": 400,
"message": "토큰 값이 없습니다"
}
- 토큰이 만료되었을 때
{
"status": 400,
"message": "토큰 값이 만료되었습니다"
}
- 서버 에러
{
"status": 500,
"message": "서버 내부 에러입니다"
}