Apply schema template
apply_templateApply a curated schema template from this workspace's template registry — a pre-vetted bundle of objects, fields, pick-list values, pipelines, and starter views — in one step. Admin-only. Idempotent: keys that already exist are skipped, so re-applying (or applying overlapping templates) never duplicates. Pass the template's key — describe_schema's templates section lists every available key with its label, blurb and what it provisions (object / field / pipeline / program counts); an unknown key returns the available templates with a did-you-mean suggestion rather than an error. Returns what was created plus the workspace's refreshed enabled objects.
When to use: When an admin wants to adopt a whole curated bundle at once — a starter template of objects, fields, pick-list values, pipelines, and starter views — instead of defining each piece by hand. Idempotent: re-applying only adds what's missing.
Example: We send priced quotes — set up the quoting template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_key | Yes | Key of a curated template — one of describe_schema's `templates` keys (e.g. account_hierarchy, quoting); an unknown key returns the available templates instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applied | No | ||
| created | No | ||
| workspace | No | ||
| did_you_mean | No | ||
| template_key | No | ||
| available_templates | No |