Skip to content

[PUT] 권한변경

DongGeon0908 edited this page Oct 2, 2021 · 2 revisions

URL

METHOD URL ...
PUT /api/admin 권한변경

Request Header

{
    "Content-Type": "application/json",
    "Authorization": "Bearer "${token}"
}

Request Body

{
     "email": "[email protected]",
     "name": "컴퓨터공학부"
}

Response Success

{
  "status": 200,
  "message": "CHANGING_MEMBER_ROLE",
  "data": null
}

Response Fail Because Invalid Exception

{
  "status": 400,
  "message": "INVALID_EMAIL"
}

{
  "status": 400,
  "message": "INVALID_CLUB_NAME"
}

Response Fail Because Non Exit Member

{
  "status": 400,
  "message": "NOT_EXIST_MEMBER"
}