Update Board

change master of the board

PATCH /boards/{boardId}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Request-Body

Name
Type
Description

master_id

integer

member_id of the new board master (FK)

Response

{
      "boardId": 1,
      "boardName": "벗들의 벼룩",
      "description": "벗들의 중고거래 모임",
      "announcement": "사진을 꼭 올려야합니다~",
      "masterId": 2
}

// 생성일 및 수정일은 'BaseTimeEntity'로 서버에서 자동으로 관리됩니다.

피드백 받은 내용

  • Body에서 master_id를 보내면 master의 nickname을 알 수 있기 때문에 master을 굳이 안 보내도 될 것 같습니당

  • 404 Not Found 요청한 보드가 존재하지 않을 때 추가

Last updated