User
Update a template category (superadmin)
Updates a template category fields (displayName, description, color, isActive). Superadmin only. Returns 400 if the new name conflicts with another category.
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
application/json
curl -X PUT "https://example.com/api/user/template-categories/string" \ -H "Content-Type: application/json" \ -d '{ "displayName": "Introduction", "color": "#2563EB", "isActive": true }'{ "_id": "64d2f9c5e8a1d4e001a0b1c2", "name": "tours", "displayName": "Tours", "description": "Tour-confirmation and follow-up templates.", "color": "#3B82F6", "sortOrder": 0, "isActive": true, "createdBy": { "fullName": "Acme Admin", "email": "admin@acme.example" }, "createdAt": "2026-05-18T12:34:56.000Z", "updatedAt": "2026-05-18T12:34:56.000Z"}