thincms_update_lead_magnet
Partially update an existing lead magnet. Modify fields such as title, slug, CTA text, or enable status without sending the entire object.
Instructions
Update an existing lead magnet. Supports partial updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Lead magnet ID (required) | |
| slug | No | URL slug | |
| title | No | Lead magnet title | |
| 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. | |
| ctaText | No | CTA button text shown on the resources page (e.g., 'Join the webinar', 'Take the survey') | |
| enabled | No | Enable/disable lead magnet | |
| mediaId | No | Media ID of the downloadable file | |
| formSlug | No | Form slug | |
| sortOrder | No | Sort order | |
| landingUrl | No | Custom landing URL override. When set, resource cards link here instead of /resources/:slug. | |
| description | No | Description | |
| thumbnailUrl | No | Thumbnail image URL | |
| 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. |