Crear template HTML para organización
Permite crear template HTML para organización.
Body·
required
application/json
- Type: stringcategoryrequired
- Type: stringorganization
_id required - Type: stringsender
_email required - Type: stringsubjectrequired
- Type: stringtemplaterequired
Contenido HTML del template
- Type: booleanis
Active
Responses
- 201
Recurso creado correctamente.
- application/json
- application/json
- application/json
Request Example for post/api/templates
curl /api/templates \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"organization_id": "d2f8e96e-6a62-4a32-84f7-247edb93b61a",
"category": "welcome_email",
"template": "<html><body><h1>Bienvenido</h1><p>Gracias por registrarte.</p></body></html>",
"subject": "Código de verificación",
"sender_email": "no-reply@zwippe.com",
"isActive": true
}'
No Body