Skip to content

Create or update a note

POST
/api/v1/book-notes
curl --request POST \
--url http://127.0.0.1:58259/api/v1/book-notes \
--header 'Content-Type: application/json' \
--data '{ "id": 1, "bookId": 1, "title": "example", "content": "example" }'

Create a new note or update an existing note for a book.

Media type application/json

Note creation request

object
id
integer format: int64
bookId
required
integer format: int64
title
string
content
required
string
>= 1 characters
Example generated
{
"id": 1,
"bookId": 1,
"title": "example",
"content": "example"
}

Note created/updated successfully

Media type */*
object
id
integer format: int64
userId
integer format: int64
bookId
integer format: int64
title
string
content
string
createdAt
string format: date-time
updatedAt
string format: date-time