Update Message From URL
Updates an existing Message with the specified URL.
Function
updateMessageFromURL()
Url
- POST:
/PuresendService/v1/updateMessage
Parameters
- message:
Message
- new message to replace existing message.
- htmlContentURL:
String
- message content URL for html based viewing
- textContentURL:
String
- message content URL for text viewing allowed.
- mobileContentURL:
String
- message content URL for mobile viewing allowed.
- headerId:
int
- content ID of header
- footerId:
int
- content ID of footer
Return
int
:1
: success.-1
: failed.
Exception
- Exception
Documentation
- Sets and post-processes the specified content type to the contents of the specified URL and update an existing Message Object.
- Fails if the MIME type returned by the URL doesn’t match the requested MIME type.
Examples
{
"messageId" : "12345",
"categoryId" : -1,
"mimeType" : "text/html",
"htmlContent" : "<p> Updated html content</p>",
"textContent" : "",
"mobileContent" : "",
"headerId" : 0,
"footerId": 0
}
{
"statusCode": 1
}