Resources
Add a template to a collection
Put one template into a collection without touching its other collections.
POST /api/template-collections/{collectionId}/templatesRequires templates:update.
| Field | Required | Description |
|---|---|---|
workspace | Yes | Workspace slug or id. |
templateId | Yes | The template to add. |
curl --request POST "https://app.kalpana.one/api/template-collections/COLLECTION_ID/templates" \
--header "x-api-key: $KALPANA_API_KEY" \
--header "content-type: application/json" \
--data '{"workspace":"acme","templateId":"tpl_123"}'Response
{ "success": true }A template can be in any number of collections, and adding one that is already there changes nothing.
Errors
| Status | Cause |
|---|---|
403 | Your role or key lacks templates:update. |
404 | The collection is not in this workspace, or the template is not in it or has been deleted. The message is Template or collection not found. |
Was this page helpful?
Updated 4 Nov 2026