Templates

Update a template

Updates template metadata. Setting entryPath points the template at another file in its project and keeps its id, slug, and publications; move the file in Git separately. Source changes use the project workspace API.

patch/v1/templates/{id}

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/templates/{id}
  • Auth: API key in header x-api-key

Path parameters

idstring required

Request body

Response

Template

idstring required
slugstring required
namestring required
channel'email' required
projectIdstring required
namespaceIdstring required
sharedboolean required

Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared.

entryPathstring required
status'draft' | 'pending' | 'approved' | 'published' | 'rejected' | 'archived' required
isActiveboolean required
publishedAtstring nullable required
usageCountinteger required
lastUsedAtstring nullable required
createdAtstring required
updatedAtstring required
familyIdstring required
descriptionstring nullable required
category'transactional' | 'marketing' | 'support' | 'notification' | 'verification' | 'reminder' | 'alert' nullable required
replyToDefaultstring[] nullable required
publicationIdstring required
inputContractIdstring required
inputSchemaobject nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.