thincms_update_collection
Update collection settings with partial updates. Modify fields like name, display mode, grid columns, and schema type without resending full configuration.
Instructions
Update collection settings. Supports partial updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Collection ID | |
| name | No | Collection name | |
| slug | No | URL-safe slug | |
| siteId | No | Override the active site for this single call. Pass to target a specific tenant without mutating shared active-site state — the right pattern when running concurrent agent sessions managing different tenants. Must match a siteId from your THINCMS_SITES config (use thincms_list_sites to inspect). When omitted, the call uses the active site set by thincms_switch_site. | |
| columns | No | Grid columns | |
| enabled | No | Whether the collection is active | |
| maxItems | No | Max items to show, 0 = all | |
| showLink | No | Show item links | |
| showImage | No | Show item images | |
| showTitle | No | Show item titles | |
| sortOrder | No | Sort order | |
| schemaType | No | Schema.org type to auto-emit. 'faq' emits FAQPage JSON-LD on pages that render this collection. | |
| showRating | No | Show item ratings | |
| autoAdvance | No | Auto-advance carousel/banner | |
| description | No | Internal description/note | |
| displayMode | No | Display mode | |
| showSubtitle | No | Show item subtitles | |
| advanceInterval | No | Seconds between auto-advance slides | |
| confirmProductionWrite | No | Acknowledge that this call may write to a configured production site (THINCMS_PRODUCTION_SITE_IDS env var). Required for any POST/PUT/PATCH/DELETE against a production-listed site; ignored otherwise. The error message lists which site triggered the requirement and recommends thincms_snapshot before any production write. |