POST api/SecureMessagesToPractice
Sends a secure message to the practice or saves it as a draft, depending of the value of Status in the model. A status of Sent will send the message. A status of Draft will save it as a draft.
Request Information
URI Parameters
None.
Body Parameters
Model used to send secure message to the practice from patient.
MessageToPracticeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Unique ID of the message (Read only). |
globally unique identifier |
None. |
| CreationDate |
Date of creation of the message. |
string |
None. |
| Priority |
Priority of the message. Possible values are: Normal, High, Low. |
string |
None. |
| Status |
Status of the message. Possible values are Draft, Sent. |
string |
None. |
| Read |
Indicates if message is read. |
boolean |
None. |
| SecureRecipientId |
Unique ID of the recipient of the message. |
globally unique identifier |
None. |
| SecureRecipientName |
Name of the secure recipient. |
string |
None. |
| Subject |
Subject of the message. |
string |
None. |
| Body |
Body of the message. |
string |
None. |
| SentDate |
Date when the message was sent (Read only). |
string |
None. |
Request Formats
application/json, text/json
{
"Id": "abd6a73f-87ef-4338-bc6f-5f42d61d62a3",
"CreationDate": "sample string 2",
"Priority": "sample string 3",
"Status": "sample string 4",
"Read": true,
"SecureRecipientId": "ee8b82ac-a6f9-4c4a-9c81-b71fdac8bb00",
"SecureRecipientName": "sample string 7",
"Subject": "sample string 8",
"Body": "sample string 9",
"SentDate": "sample string 10"
}
application/xml, text/xml
<MessageToPracticeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.SecureMessages"> <Body>sample string 9</Body> <CreationDate>sample string 2</CreationDate> <Id>abd6a73f-87ef-4338-bc6f-5f42d61d62a3</Id> <Priority>sample string 3</Priority> <Read>true</Read> <SecureRecipientId>ee8b82ac-a6f9-4c4a-9c81-b71fdac8bb00</SecureRecipientId> <SecureRecipientName>sample string 7</SecureRecipientName> <SentDate>sample string 10</SentDate> <Status>sample string 4</Status> <Subject>sample string 8</Subject> </MessageToPracticeModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
MessageToPracticeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Unique ID of the message (Read only). |
globally unique identifier |
None. |
| CreationDate |
Date of creation of the message. |
string |
None. |
| Priority |
Priority of the message. Possible values are: Normal, High, Low. |
string |
None. |
| Status |
Status of the message. Possible values are Draft, Sent. |
string |
None. |
| Read |
Indicates if message is read. |
boolean |
None. |
| SecureRecipientId |
Unique ID of the recipient of the message. |
globally unique identifier |
None. |
| SecureRecipientName |
Name of the secure recipient. |
string |
None. |
| Subject |
Subject of the message. |
string |
None. |
| Body |
Body of the message. |
string |
None. |
| SentDate |
Date when the message was sent (Read only). |
string |
None. |
Response Formats
application/json, text/json
{
"Id": "113d9fbd-d4fb-48bd-8da8-3a93f7547067",
"CreationDate": "sample string 2",
"Priority": "sample string 3",
"Status": "sample string 4",
"Read": true,
"SecureRecipientId": "3871c18c-127c-4c98-99c4-db4f2ee09586",
"SecureRecipientName": "sample string 7",
"Subject": "sample string 8",
"Body": "sample string 9",
"SentDate": "sample string 10"
}
application/xml, text/xml
<MessageToPracticeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.SecureMessages"> <Body>sample string 9</Body> <CreationDate>sample string 2</CreationDate> <Id>113d9fbd-d4fb-48bd-8da8-3a93f7547067</Id> <Priority>sample string 3</Priority> <Read>true</Read> <SecureRecipientId>3871c18c-127c-4c98-99c4-db4f2ee09586</SecureRecipientId> <SecureRecipientName>sample string 7</SecureRecipientName> <SentDate>sample string 10</SentDate> <Status>sample string 4</Status> <Subject>sample string 8</Subject> </MessageToPracticeModel>