Body Size Delete
user pk, pet pk, body pk 값에 해당하는 펫의 신체 사이즈 객체를 삭제합니다.
URL
/medical/<user_pk>/pets/<pet_pk>/sizes/<body_pk>/
Method
DELETE
Header
Headers Key | Headers Value | 설명 | Required |
---|---|---|---|
Authorization | Token 321*************************** | 로그인에서 획득한 Token값 입력 | True |
Success Response
HTTP Status code
204 No Content
Content
없음
Error Response
HTTP Status code
401 Unauthorized
Content
# 토큰을 전달하지 않은 경우(로그인하지 않은 유저의 접근)
{
"detail": "Authentication credentials were not provided."
}
# 잘못된 토큰으로 접근한 경우(만료된 토큰, DB에 존재하지 않는 토큰)
{
"detail": "Invalid token."
}
HTTP Status code
403 Forbidden
Content
# 다른 유저의 토큰으로 접근한 경우
{
"detail": "You do not have permission to perform this action."
}
HTTP Status code
404 Not Found
# pk값이 올바르지 않게 입력된 경우
{
"detail": "Not found."
}