PUT https://api.actonsoftware.com/api/1/message/{id}
This endpoint allows you to update a template or a draft message in the account.
Customers wanting to access our API via our gateway in the EU can use this link:
PUT https://api-eu.actonsoftware.com/api/1/message/{id}
Parameters
| Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
|---|---|---|---|---|---|
| Authorization: | Header | False | Required | String | Insert your generated access token. ("Bearer {access token}") |
| id | Path | False | Optional | String | Specify the ID of the template or draft message. |
| subject | Query | False | Optional | String | Specify a subject for the message. |
| title | Form | False | Optional | String | Specify the title of the message. |
| htmlbody | Query | False | Optional | String | Specify the HTML for the message. |
| textbody | Query | False | Optional | String | Specify the TEXT body for the message. |
Parameter Notes
htmlbody
Adding a custom htmlbody is equivalent to adding a custom content block to an Act-On email.
Response
{
"status": "success",
"message": "Message updated",
"id": "d-0004"
}
Code Examples
cURL
curl -X PUT https://api.actonsoftware.com/api/1/message/d-0004 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -d 'type=draft&subject=subjecthere&title=titlehere&htmlbody=htmlhere'