Fields
Create and update fields in CMS collections using the Fields tools. Fields define the data structure for collection items.
Create static field
Create a new static field in a CMS collection (e.g., text, number, date, etc.).
Tool: collection_fields_create_static
Unique identifier for the collection
Static field definition
+ Show 5 properties
Field name
Field slug
Type of field (text, number, date, etc.)
Whether the field is required
Whether values must be unique
Returns: Created field object
Create option field
Create a new option field in a CMS collection with predefined choices.
Tool: collection_fields_create_option
Unique identifier for the collection
Option field definition
+ Show 4 properties
Field name
Field slug
Array of option values
Whether the field is required
Returns: Created field object
Create reference field
Create a new reference field in a CMS collection that links to items in another collection.
Tool: collection_fields_create_reference
Unique identifier for the collection
Reference field definition
+ Show 4 properties
Field name
Field slug
ID of the referenced collection
Whether the field is required
Returns: Created field object
Update field
Update properties of an existing field in a CMS collection.
Tool: collection_fields_update
Unique identifier for the collection
Unique identifier for the field
Field update object with properties to modify
Returns: Updated field object