📋 Endpoint Details
Method:
PUT
Path:
/api/templates/:id
Authentication:
Required - Include Authorization: Bearer <token> header
📤 Request Body
{
"name": "string (optional)",
"content": "object (optional)"
}
📥 Response Example
{
"success": true,
"message": "Template updated successfully",
"data": {}
}
💡 Usage Tips
cURL Example:
curl -X PUT \
http://localhost:3000/api/templates/:id \
-H "Content-Type: application/json" \
-d '{
"name": "string (optional)",
"content": "object (optional)"
}' \
-H "Authorization: Bearer YOUR_TOKEN_HERE"