Group Profile Image Destroy
입력한 primary key에 해당하는 MyGroup object의 profile-img를 삭제합니다.
URL/group/<pk>/profile-img/
MethodDELETE
Header
Key | Description | Value | Type | Require |
---|---|---|---|---|
Authorization | 요청을 보내는 유저의 token | user token | String | True |
Success response
HTTP Status code200
Content
{
"detail": "그룹의 프로필 이미지가 삭제되었습니다."
}
Error response
Unauthorized error
HTTP Status code401
Content
{
"detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}
Request user is not group owner error
HTTP Status code403
Content
{
"detail": "그룹장만 접근할 수 있습니다."
}
MyGroup object does not exist error
HTTP Status code404
Content
{
"detail": "찾을 수 없습니다."
}