POST PlanCare2Api/PlanCareMessages/Message

Post a Message.

Request Information

URI Parameters

None.

Body Parameters

Message to send.

Message
Name Description Type Additional information
To

The addresses the message is sent to.

Collection of MessageAddress

Required

Cc

Addresses that should receive a carbon copy of the message.

Collection of MessageAddress

-

Subject

The subject of the message.

string

Required

Body

The message body.

string

-

RequestReadConfirmation

Set when the recipients should send a read confirmation, false when empty.

boolean

-

Client

Optional: The Identity of the Client involved

Identity

-

Request Formats

application/json, text/json

Sample:
{
  "To": [
    {
      "$id": "2",
      "Id": 1,
      "Name": "sample string 2",
      "Type": 1
    },
    {
      "$ref": "2"
    }
  ],
  "Cc": [
    {
      "$ref": "2"
    },
    {
      "$ref": "2"
    }
  ],
  "Subject": "sample string 1",
  "Body": "sample string 2",
  "RequestReadConfirmation": true,
  "Client": {
    "$id": "3",
    "Identifier": "sample string 1",
    "Type": 0
  }
}

application/xml, text/xml

Sample:
<Message xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
  <Body>sample string 2</Body>
  <Cc>
    <MessageAddress>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>Relation</Type>
    </MessageAddress>
    <MessageAddress>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>Relation</Type>
    </MessageAddress>
  </Cc>
  <Client xmlns:d2p1="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Common.Infrastructure">
    <d2p1:Identifier>sample string 1</d2p1:Identifier>
    <d2p1:Type>ExternalId</d2p1:Type>
  </Client>
  <RequestReadConfirmation>true</RequestReadConfirmation>
  <Subject>sample string 1</Subject>
  <To>
    <MessageAddress>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>Relation</Type>
    </MessageAddress>
    <MessageAddress>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>Relation</Type>
    </MessageAddress>
  </To>
</Message>

Response Information

Resource Description

HttpResponseMessage
Name Description Type Additional information
Version

Version

-

Content

HttpContent

-

StatusCode

HttpStatusCode

-

ReasonPhrase

string

-

Headers

Collection of Object

-

RequestMessage

HttpRequestMessage

-

IsSuccessStatusCode

boolean

-