POST api/Chat/AddOrUpdateGlobalChat
Request Information
URI Parameters
None.
Body Parameters
ChatViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ThreadId | string |
None. |
|
| Title | string |
None. |
|
| LastMessge | string |
None. |
|
| ParticipantCount | integer |
None. |
|
| ThreadType | integer |
None. |
|
| FromUserId | string |
None. |
|
| ToUserId | string |
None. |
|
| IsDeleted | boolean |
None. |
|
| CreatedOn | date |
None. |
|
| CreatedBy | string |
None. |
|
| ModifiedOn | date |
None. |
|
| ModifiedBy | string |
None. |
|
| Message | string |
None. |
|
| ToUserIdName | string |
None. |
|
| UnReadCount | integer |
None. |
|
| LastActive | decimal number |
None. |
|
| ThreadDetail | ChatDetailMapping |
None. |
|
| ThreadTaskProblemDetail | ThreadTaskProblemDetailViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"ThreadId": "sample string 1",
"Title": "sample string 2",
"LastMessge": "sample string 3",
"ParticipantCount": 1,
"ThreadType": 4,
"FromUserId": "sample string 5",
"ToUserId": "sample string 6",
"IsDeleted": true,
"CreatedOn": "2026-04-03T05:58:49.4058413Z",
"CreatedBy": "sample string 9",
"ModifiedOn": "2026-04-03T05:58:49.4058413Z",
"ModifiedBy": "sample string 10",
"Message": "sample string 11",
"ToUserIdName": "sample string 12",
"UnReadCount": 13,
"LastActive": 14.1,
"ThreadDetail": {
"JobId": 1,
"JobNumber": "sample string 1",
"TaskId": 1,
"TaskIdForDisplay": "sample string 2",
"TaskProblemId": 1,
"LigaId": 1
},
"ThreadTaskProblemDetail": {
"TaskProblemId": 1,
"TaskIdForDisplay": "sample string 2",
"SubscriberName": "sample string 3",
"Problem": "sample string 4",
"Address": "sample string 5",
"ProductName": "sample string 6",
"ServiceWorkerName": "sample string 7",
"SourceId": "sample string 8",
"JobNumber": "sample string 9",
"ReportedAt": "2026-04-03T05:58:49.4058413Z"
}
}
text/html
Sample:
{"ThreadId":"sample string 1","Title":"sample string 2","LastMessge":"sample string 3","ParticipantCount":1,"ThreadType":4,"FromUserId":"sample string 5","ToUserId":"sample string 6","IsDeleted":true,"CreatedOn":"2026-04-03T05:58:49.4058413Z","CreatedBy":"sample string 9","ModifiedOn":"2026-04-03T05:58:49.4058413Z","ModifiedBy":"sample string 10","Message":"sample string 11","ToUserIdName":"sample string 12","UnReadCount":13,"LastActive":14.1,"ThreadDetail":{"JobId":1,"JobNumber":"sample string 1","TaskId":1,"TaskIdForDisplay":"sample string 2","TaskProblemId":1,"LigaId":1},"ThreadTaskProblemDetail":{"TaskProblemId":1,"TaskIdForDisplay":"sample string 2","SubscriberName":"sample string 3","Problem":"sample string 4","Address":"sample string 5","ProductName":"sample string 6","ServiceWorkerName":"sample string 7","SourceId":"sample string 8","JobNumber":"sample string 9","ReportedAt":"2026-04-03T05:58:49.4058413Z"}}
application/xml, text/xml
Sample:
<ChatViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mediahuis.Models.Chat">
<CreatedBy>sample string 9</CreatedBy>
<CreatedOn>2026-04-03T05:58:49.4058413Z</CreatedOn>
<FromUserId>sample string 5</FromUserId>
<IsDeleted>true</IsDeleted>
<LastActive>14.1</LastActive>
<LastMessge>sample string 3</LastMessge>
<Message>sample string 11</Message>
<ModifiedBy>sample string 10</ModifiedBy>
<ModifiedOn>2026-04-03T05:58:49.4058413Z</ModifiedOn>
<ParticipantCount>1</ParticipantCount>
<ThreadDetail>
<JobId>1</JobId>
<JobNumber>sample string 1</JobNumber>
<LigaId>1</LigaId>
<TaskId>1</TaskId>
<TaskIdForDisplay>sample string 2</TaskIdForDisplay>
<TaskProblemId>1</TaskProblemId>
</ThreadDetail>
<ThreadId>sample string 1</ThreadId>
<ThreadTaskProblemDetail>
<Address>sample string 5</Address>
<JobNumber>sample string 9</JobNumber>
<Problem>sample string 4</Problem>
<ProductName>sample string 6</ProductName>
<ReportedAt>2026-04-03T05:58:49.4058413Z</ReportedAt>
<ServiceWorkerName>sample string 7</ServiceWorkerName>
<SourceId>sample string 8</SourceId>
<SubscriberName>sample string 3</SubscriberName>
<TaskIdForDisplay>sample string 2</TaskIdForDisplay>
<TaskProblemId>1</TaskProblemId>
</ThreadTaskProblemDetail>
<ThreadType>4</ThreadType>
<Title>sample string 2</Title>
<ToUserId>sample string 6</ToUserId>
<ToUserIdName>sample string 12</ToUserIdName>
<UnReadCount>13</UnReadCount>
</ChatViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.