Apply schema template
apply_templateApply a curated schema template from the workspace's registry — a pre-vetted bundle of objects, fields, pick-list values, pipelines and starter views — in one step (admin-only). Idempotent: existing keys are skipped, so re-applying or overlapping templates never duplicates. describe_schema's templates section lists every 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. 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 — objects, fields, pick-list values, pipelines and starter views — instead of defining each piece. 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 |