AnswerUpVoteRelation Delete
"질문 추천 취소"
("질문 비추천"과는 다름)
로그인한 사용자가, URI에 있는 pk를 가진 AnswerUpVoteRelationn(유저-질문 추천 관계) object을 삭제합니다.
URL
/user/answer-upvote-relation/<pk>/
Method
DELETE
Header
Key | Value |
---|---|
Authorization | Token(로그인 성공했을 때 받은 Token key값) |
Success Response
204 No Content
HTTP Status Code
204
Error Response
Not Found Error
HTTP Status Code
404
Content
# 존재하지 않는 AnswerUpVoteRelation(유저-질문 추천 관계)를 삭제하려 할 경우
{
"detail": "찾을 수 없습니다."
}
Unauthorized Error
HTTP Status Code
401
Content
# 유저 Token을 헤더에 담지 않고 요청을 보낸 경우
{
"detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}
Unauthorized Error
HTTP Status Code
401
Content
# 존재하지 않는 유저 Token을 헤더에 담아 요청을 보낸 경우
{
"detail": "토큰이 유효하지 않습니다."
}
Forbidden Error
HTTP Status Code
403
Content
# 해당 AnswerUpVoteRelation(유저-질문 추천 관계)의 추천자가 아닌 다른 유저가 추천 관계를 취소하려 할 경우
{
"detail": "이 작업을 수행할 권한(permission)이 없습니다."
}