Write a note

POST
/api/notes

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

title*string
Length1 <= length <= 120
body*string
Lengthlength <= 4000

Response Body

application/json

application/json

curl -X POST "https://example.com/api/notes" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "body": "string"  }'
{  "id": "string",  "title": "string",  "body": "string",  "mine": true,  "sharedWith": -9007199254740991,  "updatedAt": "string",  "can": {    "VIEW_NOTE": true,    "EDIT_NOTE": true,    "SHARE_NOTE": true,    "DELETE_NOTE": true  }}