Rolyx API openapi.json

Delete a node

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

Scope: nodes:delete · Operation deleteNodesId

Deletes a node and everything under it, as the app's delete does; devices drop them on their next sync. Its completions stay in history. The top of a shared item, or a node holding one, can't be deleted here: stop sharing it in the app first (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})$/

Example

curl -X DELETE 'https://api.rolyx.app/v1/nodes/<id>' \
  -H "Authorization: Bearer $ROLYX_TOKEN"

Response

200, JSON.

NameTypeDescription
deletedintegerHow many nodes went: the node and its descendants.
≥ 1
{
  "deleted": 4
}

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.
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.