User
Update an SMS template
Updates name, body, type, or category on a template the authenticated user owns (or any template, for admins). At least one field must be supplied.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
templateId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/user/sms-templates/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Intro - new lead (v2)", "template": "Hi {{firstName}}, just checking in - got a sec to chat today?" }'{ "_id": "64d2f9c5e8a1d4e001a0b1c2", "name": "Tour confirm - Maple Court", "template": "Hi {{firstName}}! Confirming your tour for {{tour.date}} at {{tour.time}}.", "type": "sms", "category": "tours", "organizationId": "64a1b2c3d4e5f60012345678", "userId": "64a1b2c3d4e5f60012345679", "createdBy": "64a1b2c3d4e5f60012345679", "createdAt": "2026-05-18T12:34:56.000Z", "updatedAt": "2026-05-18T12:34:56.000Z"}