Request

Query Params

pk: int #공지 ID

Body

Name Type Description
title text 수정된 공지 제목
content text 수정된 공지 내용
title: text #수정된 공지 제목
content: text #수정된 공지 내용
{
    "title": "제목 수정",
    "content": "내용 수정"
}

Response

200

Name Type Description
message text
data
- id int 공지 고유번호
- user char 공지 작성자
- title text 수정된 공지 제목
-content text 수정된 공지 내용
-created_at DateTime 작성시간
-updated_at DateTime 수정시간
{
    "message": "TF 공지 수정 성공",
    "data": {
        "id": 1,
        "user": 1,
        "title": "제목 수정",
        "content": "내용 수정",
        "created_at": "2022-08-28 20:12",
        "updated_at": "2022-08-28 20:32"
    }
}

404

존재하지 않는 공지 ID를 pk 값에 넣어 요청보낸 경우

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

403

TF가 아닌 사용자가 수정 요청보낸 경우

{
    "detail": "이 작업을 수행할 권한(permission)이 없습니다."
}

401