capabilities.work

Scaffold a CMS Collection

A 4-step recipe with Webflow. We can help you get access.

Recipe · 4 steps

Scaffold a CMS Collection

with Webflow

Create a Collection on a site, add a field, and seed a first item.

  1. List all sites the access token can reach so a target site is available when none was explicitly provided.
  2. Create a new Collection on the target site with the supplied display and singular names.
  3. Add a plain-text custom field to the new Collection's schema so items can carry an extra value beyond name and slug.
  4. Create the first item in the new Collection as a draft using the supplied name and slug.
What you'll need to have ready
  • siteId: Optional site id to target; when omitted the first accessible site is used.
  • collectionDisplayName: Name of the new Collection (e.g. "Blog Posts").
  • collectionSingularName: Singular name of each item in the Collection (e.g. "Blog Post").
  • fieldDisplayName: Display name of the custom field to add to the Collection.
  • itemName: Name of the first item to create.
  • itemSlug: URL slug of the first item.
For your developer

Arazzo workflow webflow:scaffold-cms-collection, 4 operations: list-sites → create-collection → create-field → create-item. Specs on APIs.io.