Create a Task
const url = 'https://example.com/api/v1/notes/tasks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"body":"example","standalone":true,"status":"example","text":"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/tasks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "body": "example", "standalone": true, "status": "example", "text": "example" }'Requires a signed-in User with the data scope. It creates a Task from text and optional body content. It returns 400 when the Task text or fields are invalid. Route: /api/v1/notes/tasks. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Markdown prose placed before the Task checkbox.
Keep the Task standalone even when a Log entry exists.
Initial workflow Status for a Board lane Add task action (todo, doing, waiting, blocked, done or cancelled).
TickTick-style composer text. The server resolves dates and properties.
Examplegenerated
{ "body": "example", "standalone": true, "status": "example", "text": "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"}