id: The field identifier (e.g., "j11rZL4rT") - use this as the key in fieldData
name: Human-readable field name
type: The data type for this field
required: Whether the field is mandatory (when applicable)
allowedFileTypes: Array of allowed file extensions for file fields (e.g., ["pdf", "txt"])
cases: Array of enum options with id and name for enum fields
collectionId: Referenced collection ID for reference fields
Additional legacy properties like options, defaultValue, multiline when applicable
To create a new CMS collection, use the createCMSCollection tool.
You cannot update or add fields to existing user-managed collections, ask the user to do so. For plugin-managed collections created via createCMSCollection, you can set fields during creation.