Project Templates
Reusable project blueprints with predefined task lists. Create standardized project structures to ensure consistency across your organization.
Model
ProjectTemplate
├── name, description?
├── tasks (JSON — predefined task list)
├── orgId? (org-scoped templates)
└── createdAt, updatedAtAPI Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/orgs/:orgId/templates | Yes | List org templates |
POST | /api/templates | Yes | Create template |
PATCH | /api/templates/:id | Yes | Update template |
DELETE | /api/templates/:id | Yes | Delete template |
POST | /api/templates/:templateId/apply/:projectId | Yes | Apply template to project |
Frontend
typescript
const store = useTemplatesStore()
const { templates } = storeToRefs(store)
await store.fetchByOrg(orgId)
await store.create({ name, description, tasks, orgId })
await store.update(id, { name, description, tasks })
await store.remove(id)
await store.apply(templateId, projectId)