Diary API

일기 수정

[v1.3.0] 일기를 수정합니다. null이 아닌 필드만 업데이트됩니다.

put/api/v1/diaries/{diaryId}

Request

  • Base URL: https://lightsail.melissahttps.cloud
  • URL: https://lightsail.melissahttps.cloud/api/v1/diaries/{diaryId}
  • Auth: HTTP bearer

Path parameters

diaryIdinteger required

일기 ID

Request body

titlestring nullable

일기 제목

contentstring nullable

일기 내용

mood'HAPPY' | 'SAD' | 'TIRED' | 'ANGRY' | 'RELAX' nullable

기분

hashtag1string nullable

해시태그 1

hashtag2string nullable

해시태그 2

generateImageboolean

이미지 재생성 여부 (기본값 false)

Example request

{
  "title": "수정된 제목",
  "content": "수정된 내용",
  "mood": "RELAX",
  "hashtag1": "#수정",
  "hashtag2": "#일기"
}

Response

성공

Changes

No recorded changes to this operation across all 1 revision of this API.