Create a Note from a Log entry
POST
/api/v1/notes/journal/entries/{block_id}/note
const url = 'https://example.com/api/v1/notes/journal/entries/example/note';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"body":"example","client_id":"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 https://example.com/api/v1/notes/journal/entries/example/note \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "body": "example", "client_id": "example" }'Requires a signed-in User with the data scope. It creates a Note linked to the Log entry. It returns 404 when the entry is missing or not available to the User. Route: /api/v1/notes/journal/entries/{block_id}/note. Inputs: block_id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”block_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
body
required
string
client_id
The Composer’s stable linked-body operation identity (#844).
string | null
Examplegenerated
{ "body": "example", "client_id": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
id
required
string
Examplegenerated
{ "id": "example"}