Update note
This endpoint updates a specific note.
HTTP Request
PUT https://api.lunatask.app/v1/notes/<id>
URL Parameters
| Parameter | Description |
|---|---|
id | The ID of the note to update |
Body Parameters
The attributes you want to update – only name, content, notebook_id, and date_on (ISO-8601 formatted) are available for updating.
info
Updating a note replaces its entire content when new content is provided. Because your data is end-to-end encrypted and cannot be decrypted by our servers, appending text to existing notes isn’t possible.
Example in Ruby
require 'rest-client'
access_token = 'xxx'
payload = { content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...' }
RestClient.put('https://api.lunatask.app/v1/notes/5999b945-b2b1-48c6-aa72-b251b75b3c2e', payload.to_json, { Authorization: "bearer #{access_token}", "Content-Type": 'application/json' })
Response
The request returns JSON structured like this:
{
"note": {
"id": "5999b945-b2b1-48c6-aa72-b251b75b3c2e",
"notebook_id": "d1ff35f5-6b25-4199-ab6e-c19fe3fe27f1",
"date_on": null,
"sources": [],
"created_at": "2021-01-10T10:39:25Z",
"updated_at": "2021-01-10T10:39:25Z",
}
}