POST api/Messages/Post

Request Information

URI Parameters

None.

Body Parameters

Activity
NameDescriptionTypeAdditional information
Properties

Collection of Object

None.

type

string

None.

id

string

None.

timestamp

date

None.

localTimestamp

date

None.

localTimezone

string

None.

serviceUrl

string

None.

channelId

string

None.

from

ChannelAccount

None.

conversation

ConversationAccount

None.

recipient

ChannelAccount

None.

textFormat

string

None.

attachmentLayout

string

None.

membersAdded

Collection of ChannelAccount

None.

membersRemoved

Collection of ChannelAccount

None.

reactionsAdded

Collection of MessageReaction

None.

reactionsRemoved

Collection of MessageReaction

None.

topicName

string

None.

historyDisclosed

boolean

None.

locale

string

None.

text

string

None.

speak

string

None.

inputHint

string

None.

summary

string

None.

suggestedActions

SuggestedActions

None.

attachments

Collection of Attachment

None.

entities

Collection of Entity

None.

channelData

Object

None.

action

string

None.

replyToId

string

None.

label

string

None.

valueType

string

None.

value

Object

None.

name

string

None.

relatesTo

ConversationReference

None.

code

string

None.

expiration

date

None.

importance

string

None.

deliveryMode

string

None.

listenFor

Collection of string

None.

textHighlights

Collection of TextHighlight

None.

semanticAction

SemanticAction

None.

Request Formats

application/json, text/json

Sample:
{
  "type": "sample string 1",
  "id": "sample string 2",
  "timestamp": "2021-05-07T15:49:06.4198645+00:00",
  "localTimestamp": "2021-05-07T15:49:06.4198645+00:00",
  "localTimezone": "sample string 3",
  "serviceUrl": "sample string 4",
  "channelId": "sample string 5",
  "from": {
    "id": "sample string 1",
    "name": "sample string 2",
    "aadObjectId": "sample string 3",
    "role": "sample string 4"
  },
  "conversation": {
    "isGroup": true,
    "conversationType": "sample string 1",
    "id": "sample string 2",
    "name": "sample string 3",
    "aadObjectId": "sample string 4",
    "role": "sample string 5"
  },
  "recipient": {
    "id": "sample string 1",
    "name": "sample string 2",
    "aadObjectId": "sample string 3",
    "role": "sample string 4"
  },
  "textFormat": "sample string 6",
  "attachmentLayout": "sample string 7",
  "membersAdded": [
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "aadObjectId": "sample string 3",
      "role": "sample string 4"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "aadObjectId": "sample string 3",
      "role": "sample string 4"
    }
  ],
  "membersRemoved": [
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "aadObjectId": "sample string 3",
      "role": "sample string 4"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "aadObjectId": "sample string 3",
      "role": "sample string 4"
    }
  ],
  "reactionsAdded": [
    {
      "type": "sample string 1"
    },
    {
      "type": "sample string 1"
    }
  ],
  "reactionsRemoved": [
    {
      "type": "sample string 1"
    },
    {
      "type": "sample string 1"
    }
  ],
  "topicName": "sample string 8",
  "historyDisclosed": true,
  "locale": "sample string 9",
  "text": "sample string 10",
  "speak": "sample string 11",
  "inputHint": "sample string 12",
  "summary": "sample string 13",
  "suggestedActions": {
    "to": [
      "sample string 1",
      "sample string 2"
    ],
    "actions": [
      {
        "type": "sample string 1",
        "title": "sample string 2",
        "image": "sample string 3",
        "text": "sample string 4",
        "displayText": "sample string 5",
        "value": {},
        "channelData": {}
      },
      {
        "type": "sample string 1",
        "title": "sample string 2",
        "image": "sample string 3",
        "text": "sample string 4",
        "displayText": "sample string 5",
        "value": {},
        "channelData": {}
      }
    ]
  },
  "attachments": [
    {
      "contentType": "sample string 1",
      "contentUrl": "sample string 2",
      "content": {},
      "name": "sample string 4",
      "thumbnailUrl": "sample string 5"
    },
    {
      "contentType": "sample string 1",
      "contentUrl": "sample string 2",
      "content": {},
      "name": "sample string 4",
      "thumbnailUrl": "sample string 5"
    }
  ],
  "entities": [
    {
      "type": "sample string 1"
    },
    {
      "type": "sample string 1"
    }
  ],
  "channelData": {},
  "action": "sample string 15",
  "replyToId": "sample string 16",
  "label": "sample string 17",
  "valueType": "sample string 18",
  "value": {},
  "name": "sample string 20",
  "relatesTo": {
    "activityId": "sample string 1",
    "user": {
      "id": "sample string 1",
      "name": "sample string 2",
      "aadObjectId": "sample string 3",
      "role": "sample string 4"
    },
    "bot": {
      "id": "sample string 1",
      "name": "sample string 2",
      "aadObjectId": "sample string 3",
      "role": "sample string 4"
    },
    "conversation": {
      "isGroup": true,
      "conversationType": "sample string 1",
      "id": "sample string 2",
      "name": "sample string 3",
      "aadObjectId": "sample string 4",
      "role": "sample string 5"
    },
    "channelId": "sample string 2",
    "serviceUrl": "sample string 3"
  },
  "code": "sample string 21",
  "expiration": "2021-05-07T15:49:06.4354768+00:00",
  "importance": "sample string 22",
  "deliveryMode": "sample string 23",
  "listenFor": [
    "sample string 1",
    "sample string 2"
  ],
  "textHighlights": [
    {
      "text": "sample string 1",
      "occurrence": 1
    },
    {
      "text": "sample string 1",
      "occurrence": 1
    }
  ],
  "semanticAction": {
    "id": "sample string 1",
    "entities": {
      "sample string 1": {
        "type": "sample string 1"
      },
      "sample string 2": {
        "type": "sample string 1"
      }
    }
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.