Update Template or Draft Message

PUT https://restapi.actonsoftware.com/api/1/message/{id}

This endpoint allows you to update a template or draft in the account.

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 and Act-On email.

Response

{
  "status": "success",
  "message": "Message updated",
  "id": "d-0004"
}

Code Examples

curl -X PUT https://restapi.actonsoftware.com/api/1/message/d-0004 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -d 'type=draft&subject=subjecthere&title=titlehere&htmlbody=htmlhere'