Change Task properties
const url = 'https://example.com/api/v1/notes/tasks/properties';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fields":{"additionalProperty":"example"},"tags":["example"],"task_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/notes/tasks/properties \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fields": { "additionalProperty": "example" }, "tags": [ "example" ], "task_id": "example" }'Route: /api/v1/notes/tasks/properties. Inputs: If-Match. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Optional Task revision for guarded Undo
Request Bodyrequired
Section titled “Request Bodyrequired”Edit a standalone Task by its identity, without Note property fields (#833, §41).
object
Task fields plus the internal task-root-block-id reminder identity.
Null removes an optional field.
object
Examplegenerated
{ "fields": { "additionalProperty": "example" }, "tags": [ "example" ], "task_id": "example"}Responses
Section titled “Responses”object
RFC 3339 creation instant, including the User’s offset (#655).
Local clock paired with due, when this Task has a timed due date.
Outgoing links for the derived ## Links view.
Strong revision returned by Task writes for guarded Undo.
Local clock paired with scheduled, when this Task has a timed date.
Local clock paired with start, when this Task has a timed date.
File Tasks use calternal-id; inline tasks keep their block identity.
Examplegenerated
{ "attached_day": "example", "created": "example", "created_at": "example", "due": "example", "due_time": "example", "kind": "example", "links": [ "example" ], "priority": "example", "recurrence": "example", "revision": "example", "scheduled": "example", "scheduled_time": "example", "source": "example", "start": "example", "start_time": "example", "status": "example", "tags": [ "example" ], "task_id": "example", "title": "example"}Task changed