Update a campaign mailing
Marketing · Campaigns
Update a campaign
Updates a campaign mailing. Only the fields you send are changed. PUT is accepted as an equivalent to PATCH.
subject must stay unique within your account. The unsubscribe footer is reapplied to html_part on every save.
Example curl command:
curl -X PATCH \
https://api.paubox.com/v1/marketing/campaign_mailings/123e4567-e89b-12d3-a456-426614174000 \
-H 'authorization: Token token=YOUR_API_KEY' \
-H 'content-type: application/json' \
-d '{
"campaign_mailing": {
"subject": "March newsletter (revised)"
}
}'
PATCH
Update a campaign mailing
Authorizations
Token-based authentication. Use format: "Token token=<API_KEY>" where <API_KEY> is your API key
Path Parameters
UUID of the campaign mailing
Body
application/json
Only the fields supplied are changed.
Response
The updated campaign mailing's ID. If validation fails the response is still 200 but the body contains an errors array instead of data.