Create PM template
create_pm_templateCreate a new PM template. Templates are reusable PM definitions (not linked to a site/asset) that can seed new PM schedules. Requires pm_templates:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | No | Checklist of tasks baked into this template | |
| title | Yes | PM template title (required, unique per tenant) | |
| asset_ids | No | Default asset IDs to seed on derived schedules | |
| documents | No | Document references | |
| frequency | No | Suggested maintenance frequency | |
| resources | No | Resource references (parts, tools, materials, equipment) | |
| description | No | Description | |
| location_ids | No | Default location IDs to seed on derived schedules | |
| work_category | No | Work category label (free text) | |
| estimated_cost | No | Estimated cost | |
| estimated_hours | No | Estimated hours | |
| form_template_id | No | Form template ID to attach to every work order this generates - resolve via list_form_templates. Use a PUBLISHED template: generation resolves the current published version of the form, so a draft attaches nothing until it is published. | |
| work_category_id | No | Work category ID - resolve via list_work_categories | |
| safety_requirements | No | Safety requirements | |
| custom_interval_weeks | No | Custom interval in weeks (when frequency is CUSTOM) |