boostcamp-2020/IssueTracker-35

[API] Label 수정

Opened this issue · 0 comments

개요

  • label 수정 API

URL

  • /labels/:labelId

Method

  • PUT: Label 수정

Header

  • Authorization: token

Body

  • id: int
  • title: string
  • content: string
  • color: string

Response

  • token: string
  • success: boolean
  • code: int

Error

상태 코드 오류 메시지 설명
400 Bad Request 없는 id로 요청하거나 title과 color값이 유효하지 않은 경우 발생합니다.
401 Unauthorized 유효한 토큰을 header에 포함하지 않은 경우 발생합니다.
500 Internal Server Error 서버에 문제가 생긴 경우 발생합니다.