Kalpana Docs
Resources

Add a template to a collection

Put one template into a collection without touching its other collections.

POST /api/template-collections/{collectionId}/templates

Requires templates:update.

FieldRequiredDescription
workspaceYesWorkspace slug or id.
templateIdYesThe 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

StatusCause
403Your role or key lacks templates:update.
404The 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

On this page