using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/ChatSession/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"ChatSessionId\": 123,\n \"TopicId\": 123,\n \"User\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Person\": {\n \"Position\": \"<string>\",\n \"PersonId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Email\": \"<string>\",\n \"FullName\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"CountryId\": 123,\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"Retired\": 123,\n \"Rank\": 123,\n \"ActiveInterests\": 123,\n \"ContactDepartment\": \"<string>\",\n \"ContactCountryId\": 123,\n \"ContactOrgNr\": \"<string>\",\n \"FaxPhone\": \"<string>\",\n \"MobilePhone\": \"<string>\",\n \"ContactPhone\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"AssociateId\": 123,\n \"UsePersonAddress\": true,\n \"ContactFax\": \"<string>\",\n \"Kanafname\": \"<string>\",\n \"Kanalname\": \"<string>\",\n \"Post1\": \"<string>\",\n \"Post2\": \"<string>\",\n \"Post3\": \"<string>\",\n \"EmailName\": \"<string>\",\n \"ContactFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"TicketPriorityId\": 123,\n \"SupportLanguageId\": 123,\n \"SupportAssociateId\": 123,\n \"CategoryName\": \"<string>\",\n \"PersonNumber\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"CustomerAlias\": \"<string>\",\n \"CustomerHost\": \"<string>\",\n \"CustomerName\": \"<string>\",\n \"CustomerEmail\": \"<string>\",\n \"CustomerPhone\": \"<string>\",\n \"CustomerConsented\": true,\n \"CustomerCompanyName\": \"<string>\",\n \"FirstMessage\": \"<string>\",\n \"LastMessage\": \"<string>\",\n \"WhenRequested\": \"2023-11-07T05:31:56Z\",\n \"WhenStarted\": \"2023-11-07T05:31:56Z\",\n \"WhenEnded\": \"2023-11-07T05:31:56Z\",\n \"WhenIdle\": \"2023-11-07T05:31:56Z\",\n \"WhenFetched\": \"2023-11-07T05:31:56Z\",\n \"SessionKey\": \"<string>\",\n \"InitialQueuePos\": 123,\n \"AlertLevel\": 123,\n \"Rank\": 123,\n \"Contact\": {\n \"ContactId\": 123,\n \"Name\": \"<string>\",\n \"OrgNr\": \"<string>\",\n \"Department\": \"<string>\",\n \"URL\": \"<string>\",\n \"City\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"AssociateId\": 123,\n \"CountryId\": 123,\n \"EmailAddress\": \"<string>\",\n \"Kananame\": \"<string>\",\n \"EmailAddressName\": \"<string>\",\n \"URLName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"BusinessName\": \"<string>\",\n \"CategoryName\": \"<string>\",\n \"CountryName\": \"<string>\",\n \"Address\": {\n \"Wgs84Latitude\": 123,\n \"Wgs84Longitude\": 123,\n \"LocalizedAddress\": [\n [\n {\n \"Name\": \"<string>\",\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"Label\": \"<string>\",\n \"ValueLength\": 123,\n \"AddressType\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ]\n ],\n \"Street\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Postal\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Formatted\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FormattedAddress\": \"<string>\",\n \"FullName\": \"<string>\",\n \"IsOwnerContact\": true,\n \"ActiveErpLinks\": 123,\n \"Number1\": \"<string>\",\n \"Number2\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Project\": {\n \"ProjectId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"URL\": \"<string>\",\n \"Type\": \"<string>\",\n \"AssociateId\": 123,\n \"AssociateFullName\": \"<string>\",\n \"TypeId\": 123,\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"StatusId\": 123,\n \"Status\": \"<string>\",\n \"TextId\": 123,\n \"PublishTo\": \"2023-11-07T05:31:56Z\",\n \"PublishFrom\": \"2023-11-07T05:31:56Z\",\n \"IsPublished\": true,\n \"URLName\": \"<string>\",\n \"ProjectNumber\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"EventId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Sale\": {\n \"ContactName\": \"<string>\",\n \"SaleDate\": \"2023-11-07T05:31:56Z\",\n \"SaleId\": 123,\n \"Probability\": 123,\n \"Title\": \"<string>\",\n \"Amount\": 123,\n \"Currency\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"Description\": \"<string>\",\n \"WeightedAmount\": 123,\n \"ProjectId\": 123,\n \"EarningPercent\": 123,\n \"Earning\": 123,\n \"ContactId\": 123,\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"SaleTypeId\": 123,\n \"SaleTypeName\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Number\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Ticket\": {\n \"TicketId\": 123,\n \"Title\": \"<string>\",\n \"CreatedAt\": \"2023-11-07T05:31:56Z\",\n \"LastChanged\": \"2023-11-07T05:31:56Z\",\n \"ReadByOwner\": \"2023-11-07T05:31:56Z\",\n \"ReadByCustomer\": \"2023-11-07T05:31:56Z\",\n \"FirstReadByUser\": \"2023-11-07T05:31:56Z\",\n \"Activate\": \"2023-11-07T05:31:56Z\",\n \"ClosedAt\": \"2023-11-07T05:31:56Z\",\n \"RepliedAt\": \"2023-11-07T05:31:56Z\",\n \"AlertTimeout\": \"2023-11-07T05:31:56Z\",\n \"Deadline\": \"2023-11-07T05:31:56Z\",\n \"CreatedBy\": 123,\n \"CreatedByName\": \"<string>\",\n \"Author\": \"<string>\",\n \"OwnedBy\": 123,\n \"OwnedByName\": \"<string>\",\n \"Category\": 123,\n \"CategoryName\": \"<string>\",\n \"CategoryFullname\": \"<string>\",\n \"Priority\": 123,\n \"PriorityName\": \"<string>\",\n \"TicketStatus\": 123,\n \"TicketStatusDisplayValue\": \"<string>\",\n \"CustId\": 123,\n \"PersonFirstname\": \"<string>\",\n \"PersonMiddleName\": \"<string>\",\n \"PersonLastname\": \"<string>\",\n \"PersonFullname\": \"<string>\",\n \"AlertLevel\": 123,\n \"ConnectId\": 123,\n \"TimeToReply\": 123,\n \"RealTimeToReply\": 123,\n \"TimeToClose\": 123,\n \"RealTimeToClose\": 123,\n \"TimeSpentInternally\": 123,\n \"TimeSpentExternally\": 123,\n \"TimeSpentQueue\": 123,\n \"RealTimeSpentInternally\": 123,\n \"RealTimeSpentExternally\": 123,\n \"RealTimeSpentQueue\": 123,\n \"TimeSpent\": 123,\n \"HasAttachment\": true,\n \"NumReplies\": 123,\n \"NumMessages\": 123,\n \"FromAddress\": \"<string>\",\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"OwnedByAssociateId\": 123,\n \"Language\": \"<string>\",\n \"Sentiment\": 123,\n \"SentimentConfidence\": 123,\n \"SaleId\": 123,\n \"ProjectId\": 123,\n \"SaleHeading\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"FormSubmissionId\": 123,\n \"TicketTypeId\": 123,\n \"TicketTypeName\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"TransferTo\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ChatbotIsActive\": true,\n \"Rating\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ChatSessionId: 123,
TopicId: 123,
User: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
CustomerAlias: '<string>',
CustomerHost: '<string>',
CustomerName: '<string>',
CustomerEmail: '<string>',
CustomerPhone: '<string>',
CustomerConsented: true,
CustomerCompanyName: '<string>',
FirstMessage: '<string>',
LastMessage: '<string>',
WhenRequested: '2023-11-07T05:31:56Z',
WhenStarted: '2023-11-07T05:31:56Z',
WhenEnded: '2023-11-07T05:31:56Z',
WhenIdle: '2023-11-07T05:31:56Z',
WhenFetched: '2023-11-07T05:31:56Z',
SessionKey: '<string>',
InitialQueuePos: 123,
AlertLevel: 123,
Rank: 123,
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Ticket: {
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: 123,
CreatedByName: '<string>',
Author: '<string>',
OwnedBy: 123,
OwnedByName: '<string>',
Category: 123,
CategoryName: '<string>',
CategoryFullname: '<string>',
Priority: 123,
PriorityName: '<string>',
TicketStatus: 123,
TicketStatusDisplayValue: '<string>',
CustId: 123,
PersonFirstname: '<string>',
PersonMiddleName: '<string>',
PersonLastname: '<string>',
PersonFullname: '<string>',
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
ContactId: 123,
ContactName: '<string>',
OwnedByAssociateId: 123,
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SaleId: 123,
ProjectId: 123,
SaleHeading: '<string>',
ProjectName: '<string>',
FormSubmissionId: 123,
TicketTypeId: 123,
TicketTypeName: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TransferTo: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ChatbotIsActive: true,
Rating: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatSession/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/ChatSession/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'ChatSessionId' => 123,
'TopicId' => 123,
'User' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Person' => [
'Position' => '<string>',
'PersonId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'Lastname' => '<string>',
'MiddleName' => '<string>',
'Title' => '<string>',
'Description' => '<string>',
'Email' => '<string>',
'FullName' => '<string>',
'DirectPhone' => '<string>',
'FormalName' => '<string>',
'CountryId' => 123,
'ContactId' => 123,
'ContactName' => '<string>',
'Retired' => 123,
'Rank' => 123,
'ActiveInterests' => 123,
'ContactDepartment' => '<string>',
'ContactCountryId' => 123,
'ContactOrgNr' => '<string>',
'FaxPhone' => '<string>',
'MobilePhone' => '<string>',
'ContactPhone' => '<string>',
'AssociateName' => '<string>',
'AssociateId' => 123,
'UsePersonAddress' => true,
'ContactFax' => '<string>',
'Kanafname' => '<string>',
'Kanalname' => '<string>',
'Post1' => '<string>',
'Post2' => '<string>',
'Post3' => '<string>',
'EmailName' => '<string>',
'ContactFullName' => '<string>',
'ActiveErpLinks' => 123,
'TicketPriorityId' => 123,
'SupportLanguageId' => 123,
'SupportAssociateId' => 123,
'CategoryName' => '<string>',
'PersonNumber' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'CustomerAlias' => '<string>',
'CustomerHost' => '<string>',
'CustomerName' => '<string>',
'CustomerEmail' => '<string>',
'CustomerPhone' => '<string>',
'CustomerConsented' => true,
'CustomerCompanyName' => '<string>',
'FirstMessage' => '<string>',
'LastMessage' => '<string>',
'WhenRequested' => '2023-11-07T05:31:56Z',
'WhenStarted' => '2023-11-07T05:31:56Z',
'WhenEnded' => '2023-11-07T05:31:56Z',
'WhenIdle' => '2023-11-07T05:31:56Z',
'WhenFetched' => '2023-11-07T05:31:56Z',
'SessionKey' => '<string>',
'InitialQueuePos' => 123,
'AlertLevel' => 123,
'Rank' => 123,
'Contact' => [
'ContactId' => 123,
'Name' => '<string>',
'OrgNr' => '<string>',
'Department' => '<string>',
'URL' => '<string>',
'City' => '<string>',
'DirectPhone' => '<string>',
'AssociateId' => 123,
'CountryId' => 123,
'EmailAddress' => '<string>',
'Kananame' => '<string>',
'EmailAddressName' => '<string>',
'URLName' => '<string>',
'AssociateFullName' => '<string>',
'BusinessName' => '<string>',
'CategoryName' => '<string>',
'CountryName' => '<string>',
'Address' => [
'Wgs84Latitude' => 123,
'Wgs84Longitude' => 123,
'LocalizedAddress' => [
[
[
'Name' => '<string>',
'Value' => '<string>',
'Tooltip' => '<string>',
'Label' => '<string>',
'ValueLength' => 123,
'AddressType' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
]
],
'Street' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Postal' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Formatted' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FormattedAddress' => '<string>',
'FullName' => '<string>',
'IsOwnerContact' => true,
'ActiveErpLinks' => 123,
'Number1' => '<string>',
'Number2' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Project' => [
'ProjectId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'URL' => '<string>',
'Type' => '<string>',
'AssociateId' => 123,
'AssociateFullName' => '<string>',
'TypeId' => 123,
'Updated' => '2023-11-07T05:31:56Z',
'StatusId' => 123,
'Status' => '<string>',
'TextId' => 123,
'PublishTo' => '2023-11-07T05:31:56Z',
'PublishFrom' => '2023-11-07T05:31:56Z',
'IsPublished' => true,
'URLName' => '<string>',
'ProjectNumber' => '<string>',
'ActiveErpLinks' => 123,
'EventId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Sale' => [
'ContactName' => '<string>',
'SaleDate' => '2023-11-07T05:31:56Z',
'SaleId' => 123,
'Probability' => 123,
'Title' => '<string>',
'Amount' => 123,
'Currency' => '<string>',
'ProjectName' => '<string>',
'AssociateFullName' => '<string>',
'Description' => '<string>',
'WeightedAmount' => 123,
'ProjectId' => 123,
'EarningPercent' => 123,
'Earning' => 123,
'ContactId' => 123,
'AssociateId' => 123,
'PersonId' => 123,
'SaleTypeId' => 123,
'SaleTypeName' => '<string>',
'PersonFullName' => '<string>',
'ActiveErpLinks' => 123,
'NextDueDate' => '2023-11-07T05:31:56Z',
'Number' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Ticket' => [
'TicketId' => 123,
'Title' => '<string>',
'CreatedAt' => '2023-11-07T05:31:56Z',
'LastChanged' => '2023-11-07T05:31:56Z',
'ReadByOwner' => '2023-11-07T05:31:56Z',
'ReadByCustomer' => '2023-11-07T05:31:56Z',
'FirstReadByUser' => '2023-11-07T05:31:56Z',
'Activate' => '2023-11-07T05:31:56Z',
'ClosedAt' => '2023-11-07T05:31:56Z',
'RepliedAt' => '2023-11-07T05:31:56Z',
'AlertTimeout' => '2023-11-07T05:31:56Z',
'Deadline' => '2023-11-07T05:31:56Z',
'CreatedBy' => 123,
'CreatedByName' => '<string>',
'Author' => '<string>',
'OwnedBy' => 123,
'OwnedByName' => '<string>',
'Category' => 123,
'CategoryName' => '<string>',
'CategoryFullname' => '<string>',
'Priority' => 123,
'PriorityName' => '<string>',
'TicketStatus' => 123,
'TicketStatusDisplayValue' => '<string>',
'CustId' => 123,
'PersonFirstname' => '<string>',
'PersonMiddleName' => '<string>',
'PersonLastname' => '<string>',
'PersonFullname' => '<string>',
'AlertLevel' => 123,
'ConnectId' => 123,
'TimeToReply' => 123,
'RealTimeToReply' => 123,
'TimeToClose' => 123,
'RealTimeToClose' => 123,
'TimeSpentInternally' => 123,
'TimeSpentExternally' => 123,
'TimeSpentQueue' => 123,
'RealTimeSpentInternally' => 123,
'RealTimeSpentExternally' => 123,
'RealTimeSpentQueue' => 123,
'TimeSpent' => 123,
'HasAttachment' => true,
'NumReplies' => 123,
'NumMessages' => 123,
'FromAddress' => '<string>',
'ContactId' => 123,
'ContactName' => '<string>',
'OwnedByAssociateId' => 123,
'Language' => '<string>',
'Sentiment' => 123,
'SentimentConfidence' => 123,
'SaleId' => 123,
'ProjectId' => 123,
'SaleHeading' => '<string>',
'ProjectName' => '<string>',
'FormSubmissionId' => 123,
'TicketTypeId' => 123,
'TicketTypeName' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TransferTo' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ChatbotIsActive' => true,
'Rating' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/ChatSession/{id}"
payload = {
"ChatSessionId": 123,
"TopicId": 123,
"User": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": True,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"CustomerAlias": "<string>",
"CustomerHost": "<string>",
"CustomerName": "<string>",
"CustomerEmail": "<string>",
"CustomerPhone": "<string>",
"CustomerConsented": True,
"CustomerCompanyName": "<string>",
"FirstMessage": "<string>",
"LastMessage": "<string>",
"WhenRequested": "2023-11-07T05:31:56Z",
"WhenStarted": "2023-11-07T05:31:56Z",
"WhenEnded": "2023-11-07T05:31:56Z",
"WhenIdle": "2023-11-07T05:31:56Z",
"WhenFetched": "2023-11-07T05:31:56Z",
"SessionKey": "<string>",
"InitialQueuePos": 123,
"AlertLevel": 123,
"Rank": 123,
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]],
"Street": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": True,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": True,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Ticket": {
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"CreatedByName": "<string>",
"Author": "<string>",
"OwnedBy": 123,
"OwnedByName": "<string>",
"Category": 123,
"CategoryName": "<string>",
"CategoryFullname": "<string>",
"Priority": 123,
"PriorityName": "<string>",
"TicketStatus": 123,
"TicketStatusDisplayValue": "<string>",
"CustId": 123,
"PersonFirstname": "<string>",
"PersonMiddleName": "<string>",
"PersonLastname": "<string>",
"PersonFullname": "<string>",
"AlertLevel": 123,
"ConnectId": 123,
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": True,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"OwnedByAssociateId": 123,
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SaleId": 123,
"ProjectId": 123,
"SaleHeading": "<string>",
"ProjectName": "<string>",
"FormSubmissionId": 123,
"TicketTypeId": 123,
"TicketTypeName": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TransferTo": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ChatbotIsActive": True,
"Rating": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ChatSessionId: 123,
TopicId: 123,
User: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
CustomerAlias: '<string>',
CustomerHost: '<string>',
CustomerName: '<string>',
CustomerEmail: '<string>',
CustomerPhone: '<string>',
CustomerConsented: true,
CustomerCompanyName: '<string>',
FirstMessage: '<string>',
LastMessage: '<string>',
WhenRequested: '2023-11-07T05:31:56Z',
WhenStarted: '2023-11-07T05:31:56Z',
WhenEnded: '2023-11-07T05:31:56Z',
WhenIdle: '2023-11-07T05:31:56Z',
WhenFetched: '2023-11-07T05:31:56Z',
SessionKey: '<string>',
InitialQueuePos: 123,
AlertLevel: 123,
Rank: 123,
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Ticket: {
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: 123,
CreatedByName: '<string>',
Author: '<string>',
OwnedBy: 123,
OwnedByName: '<string>',
Category: 123,
CategoryName: '<string>',
CategoryFullname: '<string>',
Priority: 123,
PriorityName: '<string>',
TicketStatus: 123,
TicketStatusDisplayValue: '<string>',
CustId: 123,
PersonFirstname: '<string>',
PersonMiddleName: '<string>',
PersonLastname: '<string>',
PersonFullname: '<string>',
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
ContactId: 123,
ContactName: '<string>',
OwnedByAssociateId: 123,
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SaleId: 123,
ProjectId: 123,
SaleHeading: '<string>',
ProjectName: '<string>',
FormSubmissionId: 123,
TicketTypeId: 123,
TicketTypeName: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TransferTo: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ChatbotIsActive: true,
Rating: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatSession/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ChatSessionId": 123,
"TopicId": 123,
"User": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": true,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"CustomerAlias": "<string>",
"CustomerHost": "<string>",
"CustomerName": "<string>",
"CustomerEmail": "<string>",
"CustomerPhone": "<string>",
"CustomerConsented": true,
"CustomerCompanyName": "<string>",
"Status": "Invalid",
"FirstMessage": "<string>",
"LastMessage": "<string>",
"WhenRequested": "2023-11-07T05:31:56Z",
"WhenStarted": "2023-11-07T05:31:56Z",
"WhenEnded": "2023-11-07T05:31:56Z",
"WhenIdle": "2023-11-07T05:31:56Z",
"WhenFetched": "2023-11-07T05:31:56Z",
"SessionKey": "<string>",
"InitialQueuePos": 123,
"AlertLevel": 123,
"Rank": 123,
"Flags": "CustomerIsTyping",
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [
[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]
],
"Street": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": true,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": true,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"Status": "Unknown",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"Completed": "Unknown",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Ticket": {
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"CreatedByName": "<string>",
"Author": "<string>",
"OwnedBy": 123,
"OwnedByName": "<string>",
"Category": 123,
"CategoryName": "<string>",
"CategoryFullname": "<string>",
"Slevel": "Unknown",
"Priority": 123,
"PriorityName": "<string>",
"BaseStatus": "Unknown",
"TicketStatus": 123,
"TicketStatusDisplayValue": "<string>",
"Origin": "Unknown",
"CustId": 123,
"PersonFirstname": "<string>",
"PersonMiddleName": "<string>",
"PersonLastname": "<string>",
"PersonFullname": "<string>",
"AlertLevel": 123,
"ConnectId": 123,
"ReadStatus": "Unknown",
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": true,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"OwnedByAssociateId": 123,
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SaleId": 123,
"ProjectId": 123,
"SaleHeading": "<string>",
"ProjectName": "<string>",
"FormSubmissionId": 123,
"TicketTypeId": 123,
"TicketTypeName": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TransferTo": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ChatbotIsActive": true,
"Rating": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {},
"_Links": {}
}Put Chat Session Entity
Updates the existing ChatSessionEntity
NsApiSlow threshold: 5000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/ChatSession/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"ChatSessionId\": 123,\n \"TopicId\": 123,\n \"User\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Person\": {\n \"Position\": \"<string>\",\n \"PersonId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Email\": \"<string>\",\n \"FullName\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"CountryId\": 123,\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"Retired\": 123,\n \"Rank\": 123,\n \"ActiveInterests\": 123,\n \"ContactDepartment\": \"<string>\",\n \"ContactCountryId\": 123,\n \"ContactOrgNr\": \"<string>\",\n \"FaxPhone\": \"<string>\",\n \"MobilePhone\": \"<string>\",\n \"ContactPhone\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"AssociateId\": 123,\n \"UsePersonAddress\": true,\n \"ContactFax\": \"<string>\",\n \"Kanafname\": \"<string>\",\n \"Kanalname\": \"<string>\",\n \"Post1\": \"<string>\",\n \"Post2\": \"<string>\",\n \"Post3\": \"<string>\",\n \"EmailName\": \"<string>\",\n \"ContactFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"TicketPriorityId\": 123,\n \"SupportLanguageId\": 123,\n \"SupportAssociateId\": 123,\n \"CategoryName\": \"<string>\",\n \"PersonNumber\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"CustomerAlias\": \"<string>\",\n \"CustomerHost\": \"<string>\",\n \"CustomerName\": \"<string>\",\n \"CustomerEmail\": \"<string>\",\n \"CustomerPhone\": \"<string>\",\n \"CustomerConsented\": true,\n \"CustomerCompanyName\": \"<string>\",\n \"FirstMessage\": \"<string>\",\n \"LastMessage\": \"<string>\",\n \"WhenRequested\": \"2023-11-07T05:31:56Z\",\n \"WhenStarted\": \"2023-11-07T05:31:56Z\",\n \"WhenEnded\": \"2023-11-07T05:31:56Z\",\n \"WhenIdle\": \"2023-11-07T05:31:56Z\",\n \"WhenFetched\": \"2023-11-07T05:31:56Z\",\n \"SessionKey\": \"<string>\",\n \"InitialQueuePos\": 123,\n \"AlertLevel\": 123,\n \"Rank\": 123,\n \"Contact\": {\n \"ContactId\": 123,\n \"Name\": \"<string>\",\n \"OrgNr\": \"<string>\",\n \"Department\": \"<string>\",\n \"URL\": \"<string>\",\n \"City\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"AssociateId\": 123,\n \"CountryId\": 123,\n \"EmailAddress\": \"<string>\",\n \"Kananame\": \"<string>\",\n \"EmailAddressName\": \"<string>\",\n \"URLName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"BusinessName\": \"<string>\",\n \"CategoryName\": \"<string>\",\n \"CountryName\": \"<string>\",\n \"Address\": {\n \"Wgs84Latitude\": 123,\n \"Wgs84Longitude\": 123,\n \"LocalizedAddress\": [\n [\n {\n \"Name\": \"<string>\",\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"Label\": \"<string>\",\n \"ValueLength\": 123,\n \"AddressType\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ]\n ],\n \"Street\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Postal\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Formatted\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FormattedAddress\": \"<string>\",\n \"FullName\": \"<string>\",\n \"IsOwnerContact\": true,\n \"ActiveErpLinks\": 123,\n \"Number1\": \"<string>\",\n \"Number2\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Project\": {\n \"ProjectId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"URL\": \"<string>\",\n \"Type\": \"<string>\",\n \"AssociateId\": 123,\n \"AssociateFullName\": \"<string>\",\n \"TypeId\": 123,\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"StatusId\": 123,\n \"Status\": \"<string>\",\n \"TextId\": 123,\n \"PublishTo\": \"2023-11-07T05:31:56Z\",\n \"PublishFrom\": \"2023-11-07T05:31:56Z\",\n \"IsPublished\": true,\n \"URLName\": \"<string>\",\n \"ProjectNumber\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"EventId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Sale\": {\n \"ContactName\": \"<string>\",\n \"SaleDate\": \"2023-11-07T05:31:56Z\",\n \"SaleId\": 123,\n \"Probability\": 123,\n \"Title\": \"<string>\",\n \"Amount\": 123,\n \"Currency\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"Description\": \"<string>\",\n \"WeightedAmount\": 123,\n \"ProjectId\": 123,\n \"EarningPercent\": 123,\n \"Earning\": 123,\n \"ContactId\": 123,\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"SaleTypeId\": 123,\n \"SaleTypeName\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Number\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Ticket\": {\n \"TicketId\": 123,\n \"Title\": \"<string>\",\n \"CreatedAt\": \"2023-11-07T05:31:56Z\",\n \"LastChanged\": \"2023-11-07T05:31:56Z\",\n \"ReadByOwner\": \"2023-11-07T05:31:56Z\",\n \"ReadByCustomer\": \"2023-11-07T05:31:56Z\",\n \"FirstReadByUser\": \"2023-11-07T05:31:56Z\",\n \"Activate\": \"2023-11-07T05:31:56Z\",\n \"ClosedAt\": \"2023-11-07T05:31:56Z\",\n \"RepliedAt\": \"2023-11-07T05:31:56Z\",\n \"AlertTimeout\": \"2023-11-07T05:31:56Z\",\n \"Deadline\": \"2023-11-07T05:31:56Z\",\n \"CreatedBy\": 123,\n \"CreatedByName\": \"<string>\",\n \"Author\": \"<string>\",\n \"OwnedBy\": 123,\n \"OwnedByName\": \"<string>\",\n \"Category\": 123,\n \"CategoryName\": \"<string>\",\n \"CategoryFullname\": \"<string>\",\n \"Priority\": 123,\n \"PriorityName\": \"<string>\",\n \"TicketStatus\": 123,\n \"TicketStatusDisplayValue\": \"<string>\",\n \"CustId\": 123,\n \"PersonFirstname\": \"<string>\",\n \"PersonMiddleName\": \"<string>\",\n \"PersonLastname\": \"<string>\",\n \"PersonFullname\": \"<string>\",\n \"AlertLevel\": 123,\n \"ConnectId\": 123,\n \"TimeToReply\": 123,\n \"RealTimeToReply\": 123,\n \"TimeToClose\": 123,\n \"RealTimeToClose\": 123,\n \"TimeSpentInternally\": 123,\n \"TimeSpentExternally\": 123,\n \"TimeSpentQueue\": 123,\n \"RealTimeSpentInternally\": 123,\n \"RealTimeSpentExternally\": 123,\n \"RealTimeSpentQueue\": 123,\n \"TimeSpent\": 123,\n \"HasAttachment\": true,\n \"NumReplies\": 123,\n \"NumMessages\": 123,\n \"FromAddress\": \"<string>\",\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"OwnedByAssociateId\": 123,\n \"Language\": \"<string>\",\n \"Sentiment\": 123,\n \"SentimentConfidence\": 123,\n \"SaleId\": 123,\n \"ProjectId\": 123,\n \"SaleHeading\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"FormSubmissionId\": 123,\n \"TicketTypeId\": 123,\n \"TicketTypeName\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"TransferTo\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ChatbotIsActive\": true,\n \"Rating\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ChatSessionId: 123,
TopicId: 123,
User: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
CustomerAlias: '<string>',
CustomerHost: '<string>',
CustomerName: '<string>',
CustomerEmail: '<string>',
CustomerPhone: '<string>',
CustomerConsented: true,
CustomerCompanyName: '<string>',
FirstMessage: '<string>',
LastMessage: '<string>',
WhenRequested: '2023-11-07T05:31:56Z',
WhenStarted: '2023-11-07T05:31:56Z',
WhenEnded: '2023-11-07T05:31:56Z',
WhenIdle: '2023-11-07T05:31:56Z',
WhenFetched: '2023-11-07T05:31:56Z',
SessionKey: '<string>',
InitialQueuePos: 123,
AlertLevel: 123,
Rank: 123,
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Ticket: {
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: 123,
CreatedByName: '<string>',
Author: '<string>',
OwnedBy: 123,
OwnedByName: '<string>',
Category: 123,
CategoryName: '<string>',
CategoryFullname: '<string>',
Priority: 123,
PriorityName: '<string>',
TicketStatus: 123,
TicketStatusDisplayValue: '<string>',
CustId: 123,
PersonFirstname: '<string>',
PersonMiddleName: '<string>',
PersonLastname: '<string>',
PersonFullname: '<string>',
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
ContactId: 123,
ContactName: '<string>',
OwnedByAssociateId: 123,
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SaleId: 123,
ProjectId: 123,
SaleHeading: '<string>',
ProjectName: '<string>',
FormSubmissionId: 123,
TicketTypeId: 123,
TicketTypeName: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TransferTo: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ChatbotIsActive: true,
Rating: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatSession/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/ChatSession/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'ChatSessionId' => 123,
'TopicId' => 123,
'User' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Person' => [
'Position' => '<string>',
'PersonId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'Lastname' => '<string>',
'MiddleName' => '<string>',
'Title' => '<string>',
'Description' => '<string>',
'Email' => '<string>',
'FullName' => '<string>',
'DirectPhone' => '<string>',
'FormalName' => '<string>',
'CountryId' => 123,
'ContactId' => 123,
'ContactName' => '<string>',
'Retired' => 123,
'Rank' => 123,
'ActiveInterests' => 123,
'ContactDepartment' => '<string>',
'ContactCountryId' => 123,
'ContactOrgNr' => '<string>',
'FaxPhone' => '<string>',
'MobilePhone' => '<string>',
'ContactPhone' => '<string>',
'AssociateName' => '<string>',
'AssociateId' => 123,
'UsePersonAddress' => true,
'ContactFax' => '<string>',
'Kanafname' => '<string>',
'Kanalname' => '<string>',
'Post1' => '<string>',
'Post2' => '<string>',
'Post3' => '<string>',
'EmailName' => '<string>',
'ContactFullName' => '<string>',
'ActiveErpLinks' => 123,
'TicketPriorityId' => 123,
'SupportLanguageId' => 123,
'SupportAssociateId' => 123,
'CategoryName' => '<string>',
'PersonNumber' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'CustomerAlias' => '<string>',
'CustomerHost' => '<string>',
'CustomerName' => '<string>',
'CustomerEmail' => '<string>',
'CustomerPhone' => '<string>',
'CustomerConsented' => true,
'CustomerCompanyName' => '<string>',
'FirstMessage' => '<string>',
'LastMessage' => '<string>',
'WhenRequested' => '2023-11-07T05:31:56Z',
'WhenStarted' => '2023-11-07T05:31:56Z',
'WhenEnded' => '2023-11-07T05:31:56Z',
'WhenIdle' => '2023-11-07T05:31:56Z',
'WhenFetched' => '2023-11-07T05:31:56Z',
'SessionKey' => '<string>',
'InitialQueuePos' => 123,
'AlertLevel' => 123,
'Rank' => 123,
'Contact' => [
'ContactId' => 123,
'Name' => '<string>',
'OrgNr' => '<string>',
'Department' => '<string>',
'URL' => '<string>',
'City' => '<string>',
'DirectPhone' => '<string>',
'AssociateId' => 123,
'CountryId' => 123,
'EmailAddress' => '<string>',
'Kananame' => '<string>',
'EmailAddressName' => '<string>',
'URLName' => '<string>',
'AssociateFullName' => '<string>',
'BusinessName' => '<string>',
'CategoryName' => '<string>',
'CountryName' => '<string>',
'Address' => [
'Wgs84Latitude' => 123,
'Wgs84Longitude' => 123,
'LocalizedAddress' => [
[
[
'Name' => '<string>',
'Value' => '<string>',
'Tooltip' => '<string>',
'Label' => '<string>',
'ValueLength' => 123,
'AddressType' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
]
],
'Street' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Postal' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Formatted' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FormattedAddress' => '<string>',
'FullName' => '<string>',
'IsOwnerContact' => true,
'ActiveErpLinks' => 123,
'Number1' => '<string>',
'Number2' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Project' => [
'ProjectId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'URL' => '<string>',
'Type' => '<string>',
'AssociateId' => 123,
'AssociateFullName' => '<string>',
'TypeId' => 123,
'Updated' => '2023-11-07T05:31:56Z',
'StatusId' => 123,
'Status' => '<string>',
'TextId' => 123,
'PublishTo' => '2023-11-07T05:31:56Z',
'PublishFrom' => '2023-11-07T05:31:56Z',
'IsPublished' => true,
'URLName' => '<string>',
'ProjectNumber' => '<string>',
'ActiveErpLinks' => 123,
'EventId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Sale' => [
'ContactName' => '<string>',
'SaleDate' => '2023-11-07T05:31:56Z',
'SaleId' => 123,
'Probability' => 123,
'Title' => '<string>',
'Amount' => 123,
'Currency' => '<string>',
'ProjectName' => '<string>',
'AssociateFullName' => '<string>',
'Description' => '<string>',
'WeightedAmount' => 123,
'ProjectId' => 123,
'EarningPercent' => 123,
'Earning' => 123,
'ContactId' => 123,
'AssociateId' => 123,
'PersonId' => 123,
'SaleTypeId' => 123,
'SaleTypeName' => '<string>',
'PersonFullName' => '<string>',
'ActiveErpLinks' => 123,
'NextDueDate' => '2023-11-07T05:31:56Z',
'Number' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Ticket' => [
'TicketId' => 123,
'Title' => '<string>',
'CreatedAt' => '2023-11-07T05:31:56Z',
'LastChanged' => '2023-11-07T05:31:56Z',
'ReadByOwner' => '2023-11-07T05:31:56Z',
'ReadByCustomer' => '2023-11-07T05:31:56Z',
'FirstReadByUser' => '2023-11-07T05:31:56Z',
'Activate' => '2023-11-07T05:31:56Z',
'ClosedAt' => '2023-11-07T05:31:56Z',
'RepliedAt' => '2023-11-07T05:31:56Z',
'AlertTimeout' => '2023-11-07T05:31:56Z',
'Deadline' => '2023-11-07T05:31:56Z',
'CreatedBy' => 123,
'CreatedByName' => '<string>',
'Author' => '<string>',
'OwnedBy' => 123,
'OwnedByName' => '<string>',
'Category' => 123,
'CategoryName' => '<string>',
'CategoryFullname' => '<string>',
'Priority' => 123,
'PriorityName' => '<string>',
'TicketStatus' => 123,
'TicketStatusDisplayValue' => '<string>',
'CustId' => 123,
'PersonFirstname' => '<string>',
'PersonMiddleName' => '<string>',
'PersonLastname' => '<string>',
'PersonFullname' => '<string>',
'AlertLevel' => 123,
'ConnectId' => 123,
'TimeToReply' => 123,
'RealTimeToReply' => 123,
'TimeToClose' => 123,
'RealTimeToClose' => 123,
'TimeSpentInternally' => 123,
'TimeSpentExternally' => 123,
'TimeSpentQueue' => 123,
'RealTimeSpentInternally' => 123,
'RealTimeSpentExternally' => 123,
'RealTimeSpentQueue' => 123,
'TimeSpent' => 123,
'HasAttachment' => true,
'NumReplies' => 123,
'NumMessages' => 123,
'FromAddress' => '<string>',
'ContactId' => 123,
'ContactName' => '<string>',
'OwnedByAssociateId' => 123,
'Language' => '<string>',
'Sentiment' => 123,
'SentimentConfidence' => 123,
'SaleId' => 123,
'ProjectId' => 123,
'SaleHeading' => '<string>',
'ProjectName' => '<string>',
'FormSubmissionId' => 123,
'TicketTypeId' => 123,
'TicketTypeName' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TransferTo' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ChatbotIsActive' => true,
'Rating' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/ChatSession/{id}"
payload = {
"ChatSessionId": 123,
"TopicId": 123,
"User": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": True,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"CustomerAlias": "<string>",
"CustomerHost": "<string>",
"CustomerName": "<string>",
"CustomerEmail": "<string>",
"CustomerPhone": "<string>",
"CustomerConsented": True,
"CustomerCompanyName": "<string>",
"FirstMessage": "<string>",
"LastMessage": "<string>",
"WhenRequested": "2023-11-07T05:31:56Z",
"WhenStarted": "2023-11-07T05:31:56Z",
"WhenEnded": "2023-11-07T05:31:56Z",
"WhenIdle": "2023-11-07T05:31:56Z",
"WhenFetched": "2023-11-07T05:31:56Z",
"SessionKey": "<string>",
"InitialQueuePos": 123,
"AlertLevel": 123,
"Rank": 123,
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]],
"Street": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": True,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": True,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Ticket": {
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"CreatedByName": "<string>",
"Author": "<string>",
"OwnedBy": 123,
"OwnedByName": "<string>",
"Category": 123,
"CategoryName": "<string>",
"CategoryFullname": "<string>",
"Priority": 123,
"PriorityName": "<string>",
"TicketStatus": 123,
"TicketStatusDisplayValue": "<string>",
"CustId": 123,
"PersonFirstname": "<string>",
"PersonMiddleName": "<string>",
"PersonLastname": "<string>",
"PersonFullname": "<string>",
"AlertLevel": 123,
"ConnectId": 123,
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": True,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"OwnedByAssociateId": 123,
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SaleId": 123,
"ProjectId": 123,
"SaleHeading": "<string>",
"ProjectName": "<string>",
"FormSubmissionId": 123,
"TicketTypeId": 123,
"TicketTypeName": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TransferTo": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ChatbotIsActive": True,
"Rating": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ChatSessionId: 123,
TopicId: 123,
User: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
CustomerAlias: '<string>',
CustomerHost: '<string>',
CustomerName: '<string>',
CustomerEmail: '<string>',
CustomerPhone: '<string>',
CustomerConsented: true,
CustomerCompanyName: '<string>',
FirstMessage: '<string>',
LastMessage: '<string>',
WhenRequested: '2023-11-07T05:31:56Z',
WhenStarted: '2023-11-07T05:31:56Z',
WhenEnded: '2023-11-07T05:31:56Z',
WhenIdle: '2023-11-07T05:31:56Z',
WhenFetched: '2023-11-07T05:31:56Z',
SessionKey: '<string>',
InitialQueuePos: 123,
AlertLevel: 123,
Rank: 123,
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Ticket: {
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: 123,
CreatedByName: '<string>',
Author: '<string>',
OwnedBy: 123,
OwnedByName: '<string>',
Category: 123,
CategoryName: '<string>',
CategoryFullname: '<string>',
Priority: 123,
PriorityName: '<string>',
TicketStatus: 123,
TicketStatusDisplayValue: '<string>',
CustId: 123,
PersonFirstname: '<string>',
PersonMiddleName: '<string>',
PersonLastname: '<string>',
PersonFullname: '<string>',
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
ContactId: 123,
ContactName: '<string>',
OwnedByAssociateId: 123,
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SaleId: 123,
ProjectId: 123,
SaleHeading: '<string>',
ProjectName: '<string>',
FormSubmissionId: 123,
TicketTypeId: 123,
TicketTypeName: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TransferTo: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ChatbotIsActive: true,
Rating: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatSession/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ChatSessionId": 123,
"TopicId": 123,
"User": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": true,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"CustomerAlias": "<string>",
"CustomerHost": "<string>",
"CustomerName": "<string>",
"CustomerEmail": "<string>",
"CustomerPhone": "<string>",
"CustomerConsented": true,
"CustomerCompanyName": "<string>",
"Status": "Invalid",
"FirstMessage": "<string>",
"LastMessage": "<string>",
"WhenRequested": "2023-11-07T05:31:56Z",
"WhenStarted": "2023-11-07T05:31:56Z",
"WhenEnded": "2023-11-07T05:31:56Z",
"WhenIdle": "2023-11-07T05:31:56Z",
"WhenFetched": "2023-11-07T05:31:56Z",
"SessionKey": "<string>",
"InitialQueuePos": 123,
"AlertLevel": 123,
"Rank": 123,
"Flags": "CustomerIsTyping",
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [
[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]
],
"Street": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": true,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": true,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"Status": "Unknown",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"Completed": "Unknown",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Ticket": {
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"CreatedByName": "<string>",
"Author": "<string>",
"OwnedBy": 123,
"OwnedByName": "<string>",
"Category": 123,
"CategoryName": "<string>",
"CategoryFullname": "<string>",
"Slevel": "Unknown",
"Priority": 123,
"PriorityName": "<string>",
"BaseStatus": "Unknown",
"TicketStatus": 123,
"TicketStatusDisplayValue": "<string>",
"Origin": "Unknown",
"CustId": 123,
"PersonFirstname": "<string>",
"PersonMiddleName": "<string>",
"PersonLastname": "<string>",
"PersonFullname": "<string>",
"AlertLevel": 123,
"ConnectId": 123,
"ReadStatus": "Unknown",
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": true,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"OwnedByAssociateId": 123,
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SaleId": 123,
"ProjectId": 123,
"SaleHeading": "<string>",
"ProjectName": "<string>",
"FormSubmissionId": 123,
"TicketTypeId": 123,
"TicketTypeName": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TransferTo": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ChatbotIsActive": true,
"Rating": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {},
"_Links": {}
}Headers
Convert string references and multi-language values into a specified language (iso2) code.
Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
Specify the timezone code that you would like date/time responses converted to.
The application token that identifies the partner app. Used when calling Online WebAPI from a server.
Path Parameters
The ChatSessionEntity id to update.
Query Parameters
Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category" Default = show all fields.
Body
The ChatSessionEntity to be saved.
Chat sessions belong to a chat topic, and contain messages to/from users Carrier object for ChatSessionEntity. Services for the ChatSessionEntity Carrier is available from the Chat Agent.
The primary key (auto-incremented)
The reference to the associated chat topic.
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
The alias for the customer.
The hostname or IP address for the customer.
The name of customer, if provided
The email address of the customer, if provided
The phone number of the customer, if provided
The customer consented when starting the session
The name of the customers company, if provided
Enum indicating the status for the session (pending, active, closed, etc).
Invalid, PreChatForm, Faq, OfflineForm, InQueue, CustomerLast, UserLast, Finished, Deleted, Closed, RequestPosted, ClosedFromQueue A copy of the first message in the chat session
A copy of the last message in the chat session
When the session was requested by the customer.
When the session was accepted by a user.
When the session was ended.
The last time anyone sent a message for this session.
The last time the customer's client refetched the data. Used to detect 'dead' session.
Key used to authenticate the session.
The initial queue pos (i.e. the number of pending sessions + 1) when the session was requested.
The alert level for this chat session.
Lowest possible unique number for active sessions for user. User for color index. Starting at 1.
Various flags for the chat session
CustomerIsTyping, UserIsTyping Carrier object for Contact. Services for the Contact Carrier is available from the Contact Agent.
Show child attributes
Show child attributes
Carrier object for Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Carrier object for Sale. Services for the Sale Carrier is available from the Sale Agent.
Show child attributes
Show child attributes
The ticket carrier is used for representing a service request. Carrier object for Ticket. Services for the Ticket Carrier is available from the Ticket Agent.
Show child attributes
Show child attributes
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Indicates that a chatbot is active on the session. This will cause bot triggers to fire. Set to 0 when bot hands off to user.
Rating of this chat conversation given by the customer
Wraps a table right together with an explanatory reason. Code can indicate why access is restricted.
Show child attributes
Show child attributes
Field property dictionary mapping field names to field access rights.
Show child attributes
Show child attributes
Response
ChatSessionEntity updated.
Chat sessions belong to a chat topic, and contain messages to/from users ChatSessionEntity entity with API _Links added.
The primary key (auto-incremented)
The reference to the associated chat topic.
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
The alias for the customer.
The hostname or IP address for the customer.
The name of customer, if provided
The email address of the customer, if provided
The phone number of the customer, if provided
The customer consented when starting the session
The name of the customers company, if provided
Enum indicating the status for the session (pending, active, closed, etc).
Invalid, PreChatForm, Faq, OfflineForm, InQueue, CustomerLast, UserLast, Finished, Deleted, Closed, RequestPosted, ClosedFromQueue A copy of the first message in the chat session
A copy of the last message in the chat session
When the session was requested by the customer.
When the session was accepted by a user.
When the session was ended.
The last time anyone sent a message for this session.
The last time the customer's client refetched the data. Used to detect 'dead' session.
Key used to authenticate the session.
The initial queue pos (i.e. the number of pending sessions + 1) when the session was requested.
The alert level for this chat session.
Lowest possible unique number for active sessions for user. User for color index. Starting at 1.
Various flags for the chat session
CustomerIsTyping, UserIsTyping Carrier object for Contact. Services for the Contact Carrier is available from the Contact Agent.
Show child attributes
Show child attributes
Carrier object for Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Carrier object for Sale. Services for the Sale Carrier is available from the Sale Agent.
Show child attributes
Show child attributes
The ticket carrier is used for representing a service request. Carrier object for Ticket. Services for the Ticket Carrier is available from the Ticket Agent.
Show child attributes
Show child attributes
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Indicates that a chatbot is active on the session. This will cause bot triggers to fire. Set to 0 when bot hands off to user.
Rating of this chat conversation given by the customer
Wraps a table right together with an explanatory reason. Code can indicate why access is restricted.
Show child attributes
Show child attributes
Field property dictionary mapping field names to field access rights.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Related topics
NSChatAgentPut Chat Topic EntityDelete Chat Session EntityNSChatSessionEntityGet Chat Session EntityPost Chat Session Entity