PUT | /api/v1/messages/{MessageGuid}/send | Allows the user to send a draft message. | |
---|---|---|---|
PUT | /api/messages/{MessageGuid}/send |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
MessageGuid | path | string | Yes | |
Password | body | string | Yes | The password for the message, if required. |
InviteNewUsers | body | bool? | No | Recipients of the message that do not exist in the service will be invited.Allowable Values
|
SendEmailNotification | body | bool? | No | Require the service to send a basic email notification message.Allowable Values
|
CraCode | body | string | No | |
NotificationFormats | body | array | No | Allowable Values
|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NotificationBodyText | form | string | No | |
NotificationBodyHtml | form | string | No | |
NotificationSent | form | bool | No | Allowable Values
|
ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/SendMessage HTTP/1.1
Host: cirius10.secure-messaging.com
Content-Type: application/json
Content-Length: length
{"messageGuid":"00000000000000000000000000000000","password":"String","inviteNewUsers":false,"sendEmailNotification":false,"craCode":"String","notificationFormats":["String"]}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"notificationBodyText":"String","notificationBodyHtml":"String","notificationSent":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}