Add a node
POST https://api.rolyx.app/v1/nodes
Adds a node under parentId, on date's day, or (neither) last in today's dump where today is the date in tz. It lands last among its siblings unless before or after names one, and joins its parent's space. A custom type is found by name, its own space's first. Replies 201 with the node as stored; a token without nodes:read gets only its id. Devices pick it up on their next sync.
Request body
JSON (content-type: application/json), at most 16 KB. Unknown fields are refused with a 400.
| Name | Type | Required | Description |
|---|---|---|---|
text | string | yes | The node text. Markdown and #tags work as in the app. not empty · ≤ 2000 chars · trimmed |
type | string | no | note (default), task, project, or the name of a custom type, any case. In a shared space, only that space's own custom types. ≤ 200 chars · trimmed |
size | string | no | Task size. one of sm, md, lg |
parentId | string | no | Where it goes: a node id, day:YYYY-MM-DD or root:home. It joins the parent's space. Default: today's day. ≤ 64 chars · matches /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|root:[a-z]{1,16}|year:\d{4}|month:\d{4}-\d{2}|day:\d{4}-\d{2}-\d{2})$/ |
date | string | no | Shorthand for parentId: "day:<date>". format date · ≤ 10 chars · matches /^\d{4}-\d{2}-\d{2}$/ |
before | string | no | Land just before this sibling. ≤ 64 chars · matches /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|root:[a-z]{1,16}|year:\d{4}|month:\d{4}-\d{2}|day:\d{4}-\d{2}-\d{2})$/ |
after | string | no | Land just after this sibling. Neither = last. ≤ 64 chars · matches /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|root:[a-z]{1,16}|year:\d{4}|month:\d{4}-\d{2}|day:\d{4}-\d{2}-\d{2})$/ |
tz | string | no | IANA time zone that decides which day is today when neither parentId nor date is given. Default UTC. ≤ 64 chars · trimmed |
Example
curl -X POST 'https://api.rolyx.app/v1/nodes' \
-H "Authorization: Bearer $ROLYX_TOKEN" \
-H 'content-type: application/json' \
-d '{"text":"Call the dentist","type":"task","tz":"Europe/London"}' Response
201, JSON.
| Name | Type | Description |
|---|---|---|
id | string | Node id: a UUID. |
parentId | string or null | The parent: a node id, day:YYYY-MM-DD (a day in the Journal) or root:home. |
order | string | Sort key among its siblings: siblings sort by (order, id), compared byte by byte. Opaque. |
text | string | The text; the first line is its name. Markdown, [[links]] and #tags as in the app. |
type | string | note, task, project, aim, habit, search, or custom:<id> (see GET /v1/types). |
size | string | Task size, when set. one of sm, md, lg |
done | boolean | Completed. For a repeating item: the series has ended. |
schedule | object or null | When it matters, or null. Date, window, someday and repeat replace one another. |
schedule.date | string | Do on this day. format date |
schedule.window | object | Sometime in these days. |
schedule.window.start | string | First day. format date |
schedule.window.end | string | Last day. format date |
schedule.time | string | Time of day, HH:MM, wall clock. matches /^([01]\d|2[0-3]):[0-5]\d$/ |
schedule.duration | integer | Length in minutes, when not the default for its size. ≥ 1 · ≤ 1440 |
schedule.someday | boolean | Parked (someday / maybe). Always true when present. |
schedule.repeat | object | A repeating item's current occurrence. Read-only: repeats are set up in the app. |
schedule.repeat.start | string | First day. format date |
schedule.repeat.end | string | Last day. format date |
createdAt | string | When it was made. format date-time |
updatedAt | string | When it last changed, on any device. format date-time |
space | string | The space it lives in: your personal space (your user id) or a shared one (see GET /v1/me). format uuid |
{
"id": "019ab1c2-3d4e-7f00-8a1b-2c3d4e5f6a7b",
"parentId": "day:2026-11-25",
"order": "a0V3k",
"text": "Call the dentist",
"type": "task",
"size": "sm",
"done": false,
"schedule": {
"date": "2026-11-27",
"time": "09:30"
},
"createdAt": "2026-11-25T09:00:00.000Z",
"updatedAt": "2026-11-25T09:00:00.000Z",
"space": "0b7e9a52-1c3d-4e5f-8a9b-0c1d2e3f4a5b"
} Errors
Always { "error": { "code", "message" } }; see Errors.
| Status | Code | When |
|---|---|---|
| 400 | bad_request | Bad input: unknown field, wrong type, too long. |
| 401 | unauthorized | Missing, malformed, expired or revoked token. |
| 403 | insufficient_scope | The token lacks the scope this endpoint needs. |
| 404 | not_found | No such resource, or the token cannot see it. |
| 413 | payload_too_large | Body over 16 KB. |
| 415 | unsupported_media_type | Body is not application/json. |
| 429 | rate_limited | Rate limited; see retry-after. |
| 500 | internal | Internal error. |
| 502 | upstream_error | The database failed. |
| 503 | unavailable | The API is not set up on this server. |
| 507 | storage_full | Storage limit reached. |