Get collection schema
get_collectionGet a collection's schema and field definitions. updatedAt is the value update_collection_schema needs as expectedUpdatedAt. Each field has a type (name/slug/text/html/number/checkbox/date/media/image/icon/option/reference/related, or the legacy select/textarea/email/url) plus list (true = the field holds an ARRAY of that type), to (for reference fields, the target collection id) and config (type-specific settings; for date fields { format, time, timeFormat }, where time: true means values carry a time and a UTC offset). The built-in name and slug types hold the entry's own name and URL slug: they are required, never list, and never part of entry content (get_entry returns them as entry.name and entry.slug; change them with update_entry). ALWAYS check list before writing content: a reference field with list: true takes an array of entry IDs, not a single ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project ID | |
| collectionId | Yes | The collection ID |