Detach a template from a family
Removes a member template from the family without deleting the template. Use this endpoint to detach a template from a family through the Samva email API.
DELETE
Removes a member template from the family without deleting the template.
apiKeyheader
x-api-key<token>id*stringMatch
^tfam_[0-9a-hjkmnp-tv-z]{16,24}$templateId*stringMatch
^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$TemplateFamily
application/json- response
id*TemplateFamilyIdMatch
^tfam_[0-9a-hjkmnp-tv-z]{16,24}$name*stringmembers*array<>createdAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.templates.detachFamilyMember({ "id": "example", "templateId": "example"});Example Response
{ "id": "string", "name": "string", "members": [ { "id": "string", "name": "string", "slug": "string", "channel": "sms", "status": "draft", "isActive": true, "createdAt": "string", "updatedAt": "string" } ], "createdAt": "string", "updatedAt": "string"}