Rolyx API openapi.json

Move a node

POST https://api.rolyx.app/v1/nodes/{id}/move

Scope: nodes:write · Operation postNodesIdMove

Moves a node, with everything under it, under parentId (a node, day:YYYY-MM-DD or root:home), last unless before or after names a sibling. Within one space only: moving into, out of or between shared items is done in the app (400), as is moving the top of a shared item. A node can't go under itself or its own children (400).

Path parameters

NameTypeRequiredDescription
idstringyesNode id.
≤ 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})$/

Request body

JSON (content-type: application/json), at most 16 KB. Unknown fields are refused with a 400.

NameTypeRequiredDescription
parentIdstringyesThe new parent.
≤ 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})$/
beforestringnoLand 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})$/
afterstringnoLand 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})$/

Example

curl -X POST 'https://api.rolyx.app/v1/nodes/<id>/move' \
  -H "Authorization: Bearer $ROLYX_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"parentId":"text"}'

Response

200, JSON.

NameTypeDescription
idstringNode id: a UUID.
parentIdstring or nullThe parent: a node id, day:YYYY-MM-DD (a day in the Journal) or root:home.
orderstringSort key among its siblings: siblings sort by (order, id), compared byte by byte. Opaque.
textstringThe text; the first line is its name. Markdown, [[links]] and #tags as in the app.
typestringnote, task, project, aim, habit, search, or custom:<id> (see GET /v1/types).
sizestringTask size, when set.
one of sm, md, lg
donebooleanCompleted. For a repeating item: the series has ended.
scheduleobject or nullWhen it matters, or null. Date, window, someday and repeat replace one another.
schedule.datestringDo on this day.
format date
schedule.windowobjectSometime in these days.
schedule.window.startstringFirst day.
format date
schedule.window.endstringLast day.
format date
schedule.timestringTime of day, HH:MM, wall clock.
matches /^([01]\d|2[0-3]):[0-5]\d$/
schedule.durationintegerLength in minutes, when not the default for its size.
≥ 1 · ≤ 1440
schedule.somedaybooleanParked (someday / maybe). Always true when present.
schedule.repeatobjectA repeating item's current occurrence. Read-only: repeats are set up in the app.
schedule.repeat.startstringFirst day.
format date
schedule.repeat.endstringLast day.
format date
createdAtstringWhen it was made.
format date-time
updatedAtstringWhen it last changed, on any device.
format date-time
spacestringThe 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.

StatusCodeWhen
400bad_requestBad input: unknown field, wrong type, too long.
401unauthorizedMissing, malformed, expired or revoked token.
403insufficient_scopeThe token lacks the scope this endpoint needs.
404not_foundNo such resource, or the token cannot see it.
413payload_too_largeBody over 16 KB.
415unsupported_media_typeBody is not application/json.
429rate_limitedRate limited; see retry-after.
500internalInternal error.
502upstream_errorThe database failed.
503unavailableThe API is not set up on this server.
507storage_fullStorage limit reached.