POST Message/MessageApi/ShareMessage
Request Information
URI Parameters
None.
Body Parameters
ShareMessageInputModelName | Description | Type | Additional information |
---|---|---|---|
ShareMessageDetails | SharedMessageModel |
None. |
|
SenderId | globally unique identifier |
None. |
|
Message | string |
None. |
|
TaggedMembers | Collection of globally unique identifier |
None. |
|
MessageDateTime | date |
None. |
|
Recipients | Collection of MessageRecipientModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ShareMessageDetails": { "Id": "76c9bd43-f28e-4d57-b013-d6ed209e0dd4", "ChannelId": "c98d128e-daa1-41b1-a420-86d37569bf7b", "SenderId": "a89a09bc-e7ef-4046-a3e3-d3b3bd85b166", "ReceiverId": "b3a10d4d-4baa-4c9c-b66b-e9cf79d762d4", "Message": "sample string 2", "MessageDateTime": "2024-09-19T09:43:30.1751272+01:00", "MessageType": 1, "Files": [ { "FilePath": "sample string 1", "FileName": "sample string 2" }, { "FilePath": "sample string 1", "FileName": "sample string 2" } ], "ReportMessage": "sample string 4", "TaggedMembers": [ "6dc90d28-f9cd-436e-9540-38988fe4b5b9", "911f9a44-451f-4539-b0e5-48fbd0c41c41" ], "ParentMessageId": "ea54d4c6-0420-4608-b31b-c4017453ef4a" }, "SenderId": "a34b9e77-5b8f-4731-9896-b182795d143f", "Message": "sample string 2", "TaggedMembers": [ "8d96340c-faa1-4943-8d86-ca9dc7b6c3f4", "4fce4f13-e703-486f-8cef-1fe50b0bfaab" ], "MessageDateTime": "2024-09-19T09:43:30.1751272+01:00", "Recipients": [ { "MessageId": "362898d7-7ba3-42af-8e7f-08e15de40fcc", "IsChannel": true, "ConversationId": "f6ab65d7-b4a0-4bf3-ae10-ff518b258cea" }, { "MessageId": "362898d7-7ba3-42af-8e7f-08e15de40fcc", "IsChannel": true, "ConversationId": "f6ab65d7-b4a0-4bf3-ae10-ff518b258cea" } ] }
application/xml, text/xml
Sample:
<ShareMessageInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Communicator.Models.Messages"> <Message>sample string 2</Message> <MessageDateTime>2024-09-19T09:43:30.1751272+01:00</MessageDateTime> <Recipients> <MessageRecipientModel> <ConversationId>f6ab65d7-b4a0-4bf3-ae10-ff518b258cea</ConversationId> <IsChannel>true</IsChannel> <MessageId>362898d7-7ba3-42af-8e7f-08e15de40fcc</MessageId> </MessageRecipientModel> <MessageRecipientModel> <ConversationId>f6ab65d7-b4a0-4bf3-ae10-ff518b258cea</ConversationId> <IsChannel>true</IsChannel> <MessageId>362898d7-7ba3-42af-8e7f-08e15de40fcc</MessageId> </MessageRecipientModel> </Recipients> <SenderId>a34b9e77-5b8f-4731-9896-b182795d143f</SenderId> <ShareMessageDetails> <ChannelId>c98d128e-daa1-41b1-a420-86d37569bf7b</ChannelId> <Files> <FileModel> <FileName>sample string 2</FileName> <FilePath>sample string 1</FilePath> </FileModel> <FileModel> <FileName>sample string 2</FileName> <FilePath>sample string 1</FilePath> </FileModel> </Files> <Id>76c9bd43-f28e-4d57-b013-d6ed209e0dd4</Id> <Message>sample string 2</Message> <MessageDateTime>2024-09-19T09:43:30.1751272+01:00</MessageDateTime> <MessageType>Text</MessageType> <ParentMessageId>ea54d4c6-0420-4608-b31b-c4017453ef4a</ParentMessageId> <ReceiverId>b3a10d4d-4baa-4c9c-b66b-e9cf79d762d4</ReceiverId> <ReportMessage>sample string 4</ReportMessage> <SenderId>a89a09bc-e7ef-4046-a3e3-d3b3bd85b166</SenderId> <TaggedMembers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:guid>6dc90d28-f9cd-436e-9540-38988fe4b5b9</d3p1:guid> <d3p1:guid>911f9a44-451f-4539-b0e5-48fbd0c41c41</d3p1:guid> </TaggedMembers> </ShareMessageDetails> <TaggedMembers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>8d96340c-faa1-4943-8d86-ca9dc7b6c3f4</d2p1:guid> <d2p1:guid>4fce4f13-e703-486f-8cef-1fe50b0bfaab</d2p1:guid> </TaggedMembers> </ShareMessageInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonResultOfCommunicatorJsonResultName | Description | Type | Additional information |
---|---|---|---|
Content | CommunicatorJsonResult |
None. |
|
SerializerSettings | JsonSerializerSettings |
None. |
|
Encoding | Encoding |
None. |
|
Request | HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.