List types
GET https://api.rolyx.app/v1/types
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.
| Name | Type | Description |
|---|---|---|
items | array of object | |
items[].id | string | What a node's type holds: task, or custom:<id>. |
items[].name | string | |
items[].builtin | boolean | |
items[].settable | boolean | The API can set it (POST /v1/nodes, PATCH). |
items[].checkable | boolean | Its nodes can be done. |
items[].space | string | Custom types: the space it is defined in. format uuid |
items[].fields | array of object | Custom types: their fields. Values aren't in the node shape yet. |
items[].fields[].key | string | |
items[].fields[].label | string | |
items[].fields[].kind | string | one of text, number, date, checkbox, select, node |
items[].fields[].options | array of string | select 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.
| 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. |
| 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. |