Create a note
POST
/notes
const url = 'http://127.0.0.1:7677/notes';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"example","description":"example","content":"example","tags":["example"],"type":"user","repository":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:7677/notes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "example", "description": "example", "content": "example", "tags": [ "example" ], "type": "user", "repository": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
title
required
string
description
string
content
required
Markdown body
string
tags
Array<string>
type
string
repository
string
Responses
Section titled “ Responses ”Note created
Media type application/json
object
data
object
id
required
string format: uuid
title
required
string
description
string
tags
required
Array<string>
type
required
string
repository
string
created
required
string format: date-time
updated
required
string format: date-time
content
required
Markdown body
string
filePath
required
Absolute path on the server’s filesystem
string
Example
{ "data": { "type": "user" }}Malformed request
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}