Skip to content

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, updatedAt

API Endpoints

MethodPathAuthDescription
GET/api/orgs/:orgId/templatesYesList org templates
POST/api/templatesYesCreate template
PATCH/api/templates/:idYesUpdate template
DELETE/api/templates/:idYesDelete template
POST/api/templates/:templateId/apply/:projectIdYesApply 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)