Updates an existing field in a collection.
Documentation Index
Fetch the complete documentation index at: https://docs.moonbase.ai/llms.txt
Use this file to discover all available pages before exploring further.
Your Moonbase API key.
The ID or ref of the Collection the field belongs to.
The ID or ref of the Field to update.
The field values to update.
Important: The type property is required on every update request — it acts as a discriminator to select the correct schema and must match the existing field's type.
All fields support updating name, description, cardinality, required, and unique.
Complex types use mutation operations for sub-resources:
field/choice — options array with add/update/remove opsfield/stage — stages array with add/update/remove opsfield/relation — allowed_collections array with add/remove opsParameters for updating a field, discriminated by type.
The field type. Must be field/text/single_line.
"field/text/single_line"The new name for the field.
An updated description, or null to clear it.
Updated cardinality: one or many.
one, many If true, items must have a value for this field.
If true, values must be unique across all items.
Successful response.
A field definition, which varies by type
The data type of the field. Always field/text/single_line for this field.
"field/text/single_line"Unique identifier for the object.
The human-readable name of the field (e.g., "Company Name").
A unique, stable, machine-readable identifier for the field within its collection (e.g., company_name).
Specifies whether the field can hold a single value (one) or multiple values (many).
one, many If true, this field must have a value.
If true, values for this field must be unique across all items in the collection.
If true, the value of this field is system-managed and cannot be updated via the API.
system fields are managed by Moonbase, inverse fields are the reverse side of a two-way relation, and custom fields are user-created.
system, inverse, custom Time at which the object was created, as an ISO 8601 timestamp in UTC.
Time at which the object was last updated, as an ISO 8601 timestamp in UTC.
A default value for a field. Can be a static value (e.g., value/date) or a server-resolved value (e.g., current_date). Static values use the same shape as item values. Server-resolved values are computed when an item is created.
An optional, longer-form description of the field's purpose.