Built-in schemas
The built-in node labels User, Token, Upload, Group, SavedSearch, Schema, SchemaRevision and Migration and the relation types HAS_REVISION and HAS_MIGRATION have schemas which are defined by the code of the API. Every type has its own page with the definition, which is generated from the code, so it always matches the running version.
The schemas declare every property which the API writes itself, e.g. the state and expirationDate of a token. Secrets and machine state, e.g. the hash of a token or the hashState of an upload, are internal: they are never part of responses and not visible to . Properties which start with _ are written by the API itself and are never part of a schema. The password hash and the roles of a user are never returned. The full definitions of a schema revision (_before, _after) and the steps of a migration (_steps) are only returned to tokens with the capability schema.manage, and only when the element is read directly (e.g. with ), never in search results.
Their properties and their mode can be extended, but never overruled: saving a definition which conflicts with the built-in one answers with 400 Bad Request, and a conflicting definition from an old backup is repaired by . and are not available for built-in types: saving a built-in schema with rules answers with 400 Bad Request. A rule which fails, or can not be evaluated, rejects every write of its type, and a broken rule on e.g. Token or User could lock out the API itself.