Add a block reminder
const url = 'https://example.com/api/v1/notes/example/reminders';const options = { method: 'POST', headers: { 'If-Match': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"audience":"everyone","block_id":"example","instant":"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/example/reminders \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "audience": "everyone", "block_id": "example", "instant": "example" }'Requires a signed-in User with the data scope and edit access to the Note. It returns 400 for an invalid block or time, 404 when the Note is missing, 409 when reminder data is invalid, 412 when the Note changed, or 428 when If-Match is missing. Route: /api/v1/notes/{id}/reminders. Inputs: 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”Current Note ETag
Request Bodyrequired
Section titled “Request Bodyrequired”object
Users who can see the Note at fire time, or only the setter.
Existing stable Markdown block anchor (^id).
One absolute instant in RFC 3339 form.
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 JSON request body does not match the declared request schema
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}