Restore a removed reminder if its Note and reminder revisions still match.
const url = 'https://example.com/api/v1/notes/example/reminders/example/restore';const options = { method: 'POST', headers: { 'If-Match': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"expected_revision":1}'};
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/example/reminders/example/restore \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "expected_revision": 1 }'Route: /api/v1/notes/{id}/reminders/{reminder_id}/restore. Inputs: id, reminder_id, If-Match. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Revision returned by the matching Remove action.
Examplegenerated
{ "expected_revision": 1}Responses
Section titled “Responses”object
everyone or only_me.
Stable block identity within the Note.
Stable UUID key in calternal-reminders.
Absolute trigger time, normalized to UTC.
Monotonic reminder revision used to fence a stale Undo.
User who set this reminder.
Examplegenerated
{ "audience": "example", "block_id": "example", "id": "example", "instant": "example", "revision": 1, "setter": "example"}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}