Skip to content

Restore child links from the Undo action, including links to files that stay Missing (#603).

POST
/api/v1/notes/journal/entries/{block_id}/attachments/restore
curl --request POST \
--url https://example.com/api/v1/notes/journal/entries/example/attachments/restore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "attachments": [ { "target": "example", "text": "example" } ] }'

Route: /api/v1/notes/journal/entries/{block_id}/attachments/restore. Inputs: block_id. Do not automatically replay this operation after an uncertain result.

block_id
required
string
Media typeapplication/json

Existing Home files to append to one Journal entry (#421). Keeping the batch explicit lets the server validate every target before one checked Daily note write.

object
attachments
required
Array<object>
>= 1 items <= 32 items

One composer attachment: a Home-relative file path and its link text (#421).

object
target
required
string
text
required
string
Examplegenerated
{
"attachments": [
{
"target": "example",
"text": "example"
}
]
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}