Group Profile Image Destroy

입력한 primary key에 해당하는 MyGroup object의 profile-img를 삭제합니다.

URL
/group/<pk>/profile-img/

Method
DELETE
Header

Key Description Value Type Require
Authorization 요청을 보내는 유저의 token user token String True

Success response

HTTP Status code
200

Content

{
    "detail": "그룹의 프로필 이미지가 삭제되었습니다."
}

Error response

Unauthorized error

HTTP Status code
401

Content

{
    "detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}

Request user is not group owner error

HTTP Status code
403

Content

{
    "detail": "그룹장만 접근할 수 있습니다."
}

MyGroup object does not exist error

HTTP Status code
404

Content

{
    "detail": "찾을 수 없습니다."
}

results matching ""

    No results matching ""