You are currently viewing 'Create Chat Message ' page



Usage

POST /Chat/Message/:DistrictId

Content-Type

application/json

Description

Creates a message in a chat

Note

Put the access token generated from the Get Access Token endpoint (Auth/ValidateUser) in the request header field "Authorization" as "bearer ACCESS_TOKEN_HERE".

Example

Sample Body:

{
"chatId": "4f8df05c-0d35-4fe1-b772-62e15a03f910",
"messageText": "Chat message here",
"createdByRecipientId": "3ee3fde1-4e9b-46f0-b055-c3aeca80da34"
"messageType": "Default"
}


Sample response:

{
"chatMessageId": "d2c4473a-07d5-4644-91c7-32bd22c3ae16",
"chatId": "4f8df05c-0d35-4fe1-b772-62e15a03f910",
"messageText": "Chat message here",
"createdDate": "2018-07-02T14:11:49.3157334-05:00",
"messageCreatedByName": "Brian Mann",
"createdByRecipientId": "3ee3fde1-4e9b-46f0-b055-c3aeca80da34"
}

Message Type

Value
Description
1
Default
2
AcceptConsult
2
DeferConsult