Templates
Update template
Update mutable fields of a template (name, template, type, category). Cross-org updates are not allowed.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/api/templates/string" \ -H "Content-Type: application/json" \ -d '{ "template": "Hi {{firstName}}, just checking in after our chat!" }'{ "success": true, "data": { "_id": "66a0a0b0c0d0e0f0a0b0c0d0", "name": "Demo follow-up", "template": "Hi {{firstName}}, thanks for the demo today!", "type": "message", "category": "sales-followup", "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0", "createdBy": "65b1f0a2c3d4e5f6a7b8c9d0", "createdAt": "2026-04-12T08:00:00.000Z", "updatedAt": "2026-04-12T08:00:00.000Z" }}