Rolyx API openapi.json

List types

GET https://api.rolyx.app/v1/types

Scope: nodes:read · Operation getTypes

The built-in types and your custom types (from every space the token reads; a shared item's types live in its space). A node's type is a built-in id or custom:<id>. settable types are the ones the API can give a node; it takes a custom type by name.

Example

curl 'https://api.rolyx.app/v1/types' \
  -H "Authorization: Bearer $ROLYX_TOKEN"

Response

200, JSON.

NameTypeDescription
itemsarray of object
items[].idstringWhat a node's type holds: task, or custom:<id>.
items[].namestring
items[].builtinboolean
items[].settablebooleanThe API can set it (POST /v1/nodes, PATCH).
items[].checkablebooleanIts nodes can be done.
items[].spacestringCustom types: the space it is defined in.
format uuid
items[].fieldsarray of objectCustom types: their fields. Values aren't in the node shape yet.
items[].fields[].keystring
items[].fields[].labelstring
items[].fields[].kindstring
one of text, number, date, checkbox, select, node
items[].fields[].optionsarray of stringselect fields: the choices.
{
  "items": [
    {
      "id": "task",
      "name": "Task",
      "builtin": true,
      "settable": true,
      "checkable": true
    },
    {
      "id": "custom:019ab1c2-0000-7000-8000-000000000001",
      "name": "Book",
      "builtin": false,
      "settable": true,
      "checkable": true,
      "space": "0b7e9a52-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
      "fields": [
        {
          "key": "author",
          "label": "Author",
          "kind": "text"
        }
      ]
    }
  ]
}

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.