| Required role: | Admin |
| POST | /communications/send_message |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FromAddress | body | string | No | |
| FromName | body | string | No | |
| ReplyAddress | body | string | No | |
| ReplyName | body | string | No | |
| Types | body | IEnumerable<CommMessageType> | No | |
| Recipients | body | IEnumerable<Recipient> | No | |
| Subject | body | string | No | |
| PlainText | body | string | No | |
| HtmlText | body | string | No | |
| ShortText | body | string | No |
| Text |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StudentId | form | int? | No | |
| form | string | No | ||
| ToName | form | string | No | |
| CC | form | IEnumerable<string> | No | |
| BCC | form | IEnumerable<string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Results | form | IEnumerable<CommQueueDTO> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| CommMsgItemId | form | int | No | |
| Transport | form | string | No | |
| ToAddress | form | string | No | |
| ToName | form | string | No | |
| FromAddress | form | string | No | |
| FromName | form | string | No | |
| ReplyAddress | form | string | No | |
| ReplyName | form | string | No | |
| Subject | form | string | No | |
| PlainText | form | string | No | |
| HtmlText | form | string | No | |
| ShortText | form | string | No | |
| MsgStatus | form | string | No | |
| MsgStatusDt | form | DateTime? | No | |
| SentDt | form | DateTime? | No | |
| ResultText | form | string | No | |
| ResultCode | form | int? | No | |
| Attempts | form | int? | No | |
| CreatedDt | form | DateTime? | No | |
| CC | form | bool | No | |
| BCC | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST //communications/send_message HTTP/1.1
Host: api.lsu-staging.abodehms.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'SendMessage' using the custom 'csv' filter}One or more errors occurred. (Unable to cast object of type 'ServiceStack.Host.BasicResponse' to type 'ServiceStack.Host.NetCore.NetCoreResponse'.)
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'SendMessageResponse' using the custom 'csv' filter}One or more errors occurred. (Unable to cast object of type 'ServiceStack.Host.BasicResponse' to type 'ServiceStack.Host.NetCore.NetCoreResponse'.)