Ir al contenido

Actualizar campaña (solo draft o scheduled)

PATCH
/v1/bulk/campaigns/{id}
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" }'
id
required
string
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"
}

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
nullable
reply_to
string
nullable
status
string
Allowed values: draft scheduled sending sent paused cancelled
scheduled_at
string
nullable
started_at
string
nullable
completed_at
string
nullable
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