Create data collection
create_data_collectionEVERY repeating content section (services, features, testimonials, FAQ, pricing, team …) goes in a collection — NOT optional. Create them (all plans) BEFORE deploying: editable content the site embeds with declarative markup (server-prerendered for SEO, kept live by the hosted runtime). Each section of ANY site (services, features, testimonials, FAQ, pricing, team …) belongs in a collection so the owner can edit content from their dashboard without touching code; hardcoding that content into the HTML is a broken build, even on a simple landing page. CREATE THEM ALL IN ONE CALL: pass collections: [...] (up to 16) — plan the site's whole content model, then one call per site, not one per section. Each entry picks the preset matching its content (it seeds the field schema) and optionally rows to fill it; embed each returned key with the declarative markup. Unassigned collections serve [] — assign with assign_to_project after deploy. Name each " — ".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Single-collection shape (legacy): the collection name — or use collections[] | |
| rows | No | Initial rows as objects keyed by field id, e.g. [{name: 'Lawn care', price: 49}]. Image cells take { mediaId, path } from upload_media, never a URL string. | |
| fields | No | Custom field schema — usually omit and let the preset seed it | |
| preset | No | Single-collection shape (legacy): the preset — or use collections[] | |
| collections | No | PREFERRED: every collection the site needs, in one call (max 16). Results are reported per item — a failed item never blocks the others. |