Inovacc Developer

API reference / Data

Create or update a collection

PUThttps://data.inovacc.dev/v1/databases/{database}/collections/{collection}

Create a collection, or change its fields and rules, by sending its full desired state.

Path params

  • databasestringrequired

    The database key.

  • collectionstringrequired

    The collection name: a lowercase letter, then lowercase letters, digits or _, up to 63 characters.

Body params

  • mode"schema" | "free"

    schema (the default) declares typed fields; free stores schemaless JSON documents.

  • fieldsarray

    Up to 64 fields. Fields only in the new list are added, fields only in the old list are dropped with their data; a field in both must be identical.

  • fields[].namestringrequired

    The field name; not id, version, created_at, updated_at and not starting with _.

  • fields[].typestringrequired

    text, integer, number, bool, datetime, json, relation or blob.

  • fields[].requiredboolean

    Checked on every write.

  • fields[].uniqueboolean

    No two records may share a value. Not on json or blob.

  • fields[].indexedboolean

    Index the field for filters and sorts. Not on json or blob.

  • fields[].fulltextboolean

    Search the field with q. On text only.

  • fields[].targetstring

    For a relation: the collection its record ids point at.

  • rulesobject

    list, view, create, update and delete, each null (nobody), "" (server credentials), public, users or an expression. An omitted object sets every rule to null.

Headers

  • Authorizationstringrequired

    Bearer <API key>

  • Content-Typestringrequired

    application/json, on a call with a body

See also

Source details

Catalogue entry

Id
identity/component-taxonomy/capabilities#data
Repository
identity
Path
contracts/component-taxonomy/catalog/capabilities.json
Commit
08ef3cd75d82
Updated 2026-10-10.