Actualizar plantilla
PATCH
/v1/bulk/templates/{id}
const url = 'https://api.mailerdash.com/v1/bulk/templates/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","subject":"example","html":"example","body_text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.mailerdash.com/v1/bulk/templates/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "subject": "example", "html": "example", "body_text": "example" }'Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Path Parameters
Sección titulada «Path Parameters » id
required
string
Request Body required
Sección titulada «Request Body required » Media type application/json
object
name
string
subject
string
html
string
body_text
string
Example generated
{ "name": "example", "subject": "example", "html": "example", "body_text": "example"}Responses
Sección titulada « Responses »Plantilla actualizada
Media type application/json
object
id
string
name
string
subject
string
html
string
body_text
string
key_id
string
created_at
string
updated_at
string
warnings
Advertencias de lint del HTML (e.g. imágenes sin alt, links rotos)
Array<string>
Example
{ "id": "bienvenida-fc9674", "subject": "Bienvenido {{name}}"}No autorizado
Plantilla no encontrada