Skip to content

Create a new note

POST
/info/notes
curl --request POST \
--url https://sylve.lan:8181/api/info/notes \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "content": "example", "title": "example" }'

Add a new note to the database

Note

Media typeapplication/json
object
content
required
string
>= 3 characters
title
required
string
>= 3 characters <= 128 characters
Examplegenerated
{
"content": "example",
"title": "example"
}

Created

Media typeapplication/json
object
data
object
content
string
createdAt
string
id
integer
title
string
updatedAt
string
error
string
message
string
status
string
Examplegenerated
{
"data": {
"content": "example",
"createdAt": "example",
"id": 1,
"title": "example",
"updatedAt": "example"
},
"error": "example",
"message": "example",
"status": "example"
}

Bad Request

Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{
"data": "example",
"error": "example",
"message": "example",
"status": "example"
}

Internal Server Error

Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{
"data": "example",
"error": "example",
"message": "example",
"status": "example"
}