Update a template
Updates a template. entries REPLACES the entire entry list when present — omitted entries are deleted. Omitting entries altogether leaves them untouched; name/description are ordinary merge-patch fields. Toolboxes already stamped from this template are UNTOUCHED (stamping copies entries and the skill once). skill is an ordinary field too: a write clears skill_may_be_stale, and an entries write sets it when a skill exists and the same request did not also write skill. Every skill edit is audited on template.updated (metadata.skill: written/reaffirmed/cleared, plus metadata.skill_version_id, never the text) and kept in GET /template/{id}/skill-version. Requires edit access or ownership (own grant) — no template:manage fallback; a view/use grantee reads the skill and gets 403 writing it. An entries write answers the same non-empty warnings array as create for a pin on a remote MCP tool the server is not offering right now (no connection lists it yet).
Request
- Base URL: https://api.elaichi.ai
- URL: https://api.elaichi.ai/template/{id}
- Auth: HTTP bearer
Path parameters
Template id (tpl_…).
Headers
Target organization (org_…). Required for cookie/session auth on org-scoped routes; optional for API tokens, which carry their organization, and rejected when it names a different one.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.