Actualizar campaña (solo draft o scheduled)
PATCH
/v1/bulk/campaigns/{id}
const url = 'https://api.mailerdash.com/v1/bulk/campaigns/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","template_id":"example","list_id":"example","from_email":"example","from_name":"example","reply_to":"example","scheduled_at":"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/campaigns/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "template_id": "example", "list_id": "example", "from_email": "example", "from_name": "example", "reply_to": "example", "scheduled_at": "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
template_id
string
list_id
string
from_email
string
from_name
string
reply_to
string
scheduled_at
string
Example generated
{ "name": "example", "template_id": "example", "list_id": "example", "from_email": "example", "from_name": "example", "reply_to": "example", "scheduled_at": "example"}Responses
Sección titulada « Responses »Campaña actualizada
Media type application/json
object
id
string
name
string
key_id
string
template_id
string
list_id
string
from_email
string
from_name
string
reply_to
string
status
string
scheduled_at
string
started_at
string
completed_at
string
total_contacts
integer
sent_count
integer
failed_count
integer
created_at
string
updated_at
string
Example
{ "id": "cmp-d894cd3d626d9d11", "status": "draft"}No autorizado
Campaña no encontrada
Estado no permite edicion