using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/ChatTopic/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"ChatTopicId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"WelcomeMessage\": \"<string>\",\n \"Language\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"LastAccept\": \"2023-11-07T05:31:56Z\",\n \"SecondsPrAccept\": 123,\n \"AlertRecipient\": \"<string>\",\n \"AlertTemplate\": {\n \"ReplyTemplateId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"FolderId\": 123\n },\n \"CollectConsent\": true,\n \"BadgeHeader\": \"<string>\",\n \"CustomQueueTextEnabled\": true,\n \"CustomQueueText\": \"<string>\",\n \"WarnNewChatMinutes\": 123,\n \"WarnManagerNewChatMinutes\": 123,\n \"TicketEnabled\": true,\n \"TicketCategory\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"TicketPriority\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"OpeningHoursEnabled\": true,\n \"OpeningHours\": {\n \"TzLocation\": {\n \"TZLocationID\": 123,\n \"Name\": \"<string>\",\n \"TZLocationCode\": \"<string>\",\n \"TZLocationCities\": \"<string>\",\n \"IsoNumber\": 123,\n \"TimeZoneSTDRules\": {},\n \"TimeZoneDSTRules\": {}\n },\n \"MonEnabled\": true,\n \"MonStart\": \"<string>\",\n \"MonStop\": \"<string>\",\n \"TueEnabled\": true,\n \"TueStart\": \"<string>\",\n \"TueStop\": \"<string>\",\n \"WedEnabled\": true,\n \"WedStart\": \"<string>\",\n \"WedStop\": \"<string>\",\n \"ThuEnabled\": true,\n \"ThuStart\": \"<string>\",\n \"ThuStop\": \"<string>\",\n \"FriEnabled\": true,\n \"FriStart\": \"<string>\",\n \"FriStop\": \"<string>\",\n \"SatEnabled\": true,\n \"SatStart\": \"<string>\",\n \"SatStop\": \"<string>\",\n \"SunEnabled\": true,\n \"SunStart\": \"<string>\",\n \"SunStop\": \"<string>\",\n \"UseLunchHours\": true,\n \"LunchStart\": \"<string>\",\n \"LunchStop\": \"<string>\"\n },\n \"Widget\": {\n \"AutoFaqEnabled\": true,\n \"AutoFaqCategory\": {\n \"KbCategoryId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Fullname\": \"<string>\",\n \"ParentId\": 123,\n \"SortOrder\": 123\n },\n \"PreFormEnabled\": true,\n \"PreFormMessage\": \"<string>\",\n \"PostFormEnabled\": true,\n \"PostFormHeader\": \"<string>\",\n \"PostFormMessage\": \"<string>\",\n \"PostTranscriptEnabled\": true,\n \"LanguageIsoCode\": \"<string>\",\n \"Color\": \"<string>\",\n \"BadgeColor\": \"<string>\",\n \"BadgeTextColor\": \"<string>\",\n \"CustMsgColor\": \"<string>\",\n \"CustMsgTextColor\": \"<string>\",\n \"AgentMsgColor\": \"<string>\",\n \"AgentMsgTextColor\": \"<string>\",\n \"ButtonColor\": \"<string>\",\n \"ButtonTextColor\": \"<string>\",\n \"Font\": \"<string>\",\n \"FontSize\": \"<string>\",\n \"LogoEnabled\": true,\n \"LogoBlobId\": 123,\n \"LogoName\": \"<string>\",\n \"ShowAgentPhoto\": true,\n \"WelcomeTitle\": \"<string>\",\n \"WelcomeMessage\": \"<string>\",\n \"OfflineHeader\": \"<string>\",\n \"OfflineMessage\": \"<string>\",\n \"UseAgentFirstname\": true\n },\n \"BotEnabled\": true,\n \"BotSettings\": {\n \"BotName\": \"<string>\",\n \"BotRegisterScriptId\": 123,\n \"BotSessionCreatedScriptId\": 123,\n \"BotSessionChangedScriptId\": 123,\n \"BotMessageReceivedScriptId\": 123\n },\n \"OfflineCollectConsent\": true,\n \"WarnChatMessageMinutes\": 123,\n \"WarnManagerChatMessageMinutes\": 123,\n \"UseQueueOfflineForm\": true,\n \"OfflineFormTimeLimit\": 123,\n \"OfflineFormQueueLength\": 123,\n \"WidgetEnableRating\": true,\n \"WidgetRatingText\": \"<string>\",\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({
ChatTopicId: 123,
Name: '<string>',
Description: '<string>',
WelcomeMessage: '<string>',
Language: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
LastAccept: '2023-11-07T05:31:56Z',
SecondsPrAccept: 123,
AlertRecipient: '<string>',
AlertTemplate: {ReplyTemplateId: 123, Name: '<string>', Description: '<string>', FolderId: 123},
CollectConsent: true,
BadgeHeader: '<string>',
CustomQueueTextEnabled: true,
CustomQueueText: '<string>',
WarnNewChatMinutes: 123,
WarnManagerNewChatMinutes: 123,
TicketEnabled: true,
TicketCategory: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TicketPriority: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
OpeningHoursEnabled: true,
OpeningHours: {
TzLocation: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
MonEnabled: true,
MonStart: '<string>',
MonStop: '<string>',
TueEnabled: true,
TueStart: '<string>',
TueStop: '<string>',
WedEnabled: true,
WedStart: '<string>',
WedStop: '<string>',
ThuEnabled: true,
ThuStart: '<string>',
ThuStop: '<string>',
FriEnabled: true,
FriStart: '<string>',
FriStop: '<string>',
SatEnabled: true,
SatStart: '<string>',
SatStop: '<string>',
SunEnabled: true,
SunStart: '<string>',
SunStop: '<string>',
UseLunchHours: true,
LunchStart: '<string>',
LunchStop: '<string>'
},
Widget: {
AutoFaqEnabled: true,
AutoFaqCategory: {
KbCategoryId: 123,
Name: '<string>',
Description: '<string>',
Fullname: '<string>',
ParentId: 123,
SortOrder: 123
},
PreFormEnabled: true,
PreFormMessage: '<string>',
PostFormEnabled: true,
PostFormHeader: '<string>',
PostFormMessage: '<string>',
PostTranscriptEnabled: true,
LanguageIsoCode: '<string>',
Color: '<string>',
BadgeColor: '<string>',
BadgeTextColor: '<string>',
CustMsgColor: '<string>',
CustMsgTextColor: '<string>',
AgentMsgColor: '<string>',
AgentMsgTextColor: '<string>',
ButtonColor: '<string>',
ButtonTextColor: '<string>',
Font: '<string>',
FontSize: '<string>',
LogoEnabled: true,
LogoBlobId: 123,
LogoName: '<string>',
ShowAgentPhoto: true,
WelcomeTitle: '<string>',
WelcomeMessage: '<string>',
OfflineHeader: '<string>',
OfflineMessage: '<string>',
UseAgentFirstname: true
},
BotEnabled: true,
BotSettings: {
BotName: '<string>',
BotRegisterScriptId: 123,
BotSessionCreatedScriptId: 123,
BotSessionChangedScriptId: 123,
BotMessageReceivedScriptId: 123
},
OfflineCollectConsent: true,
WarnChatMessageMinutes: 123,
WarnManagerChatMessageMinutes: 123,
UseQueueOfflineForm: true,
OfflineFormTimeLimit: 123,
OfflineFormQueueLength: 123,
WidgetEnableRating: true,
WidgetRatingText: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatTopic/{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/ChatTopic/{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([
'ChatTopicId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'WelcomeMessage' => '<string>',
'Language' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'LastAccept' => '2023-11-07T05:31:56Z',
'SecondsPrAccept' => 123,
'AlertRecipient' => '<string>',
'AlertTemplate' => [
'ReplyTemplateId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'FolderId' => 123
],
'CollectConsent' => true,
'BadgeHeader' => '<string>',
'CustomQueueTextEnabled' => true,
'CustomQueueText' => '<string>',
'WarnNewChatMinutes' => 123,
'WarnManagerNewChatMinutes' => 123,
'TicketEnabled' => true,
'TicketCategory' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TicketPriority' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'OpeningHoursEnabled' => true,
'OpeningHours' => [
'TzLocation' => [
'TZLocationID' => 123,
'Name' => '<string>',
'TZLocationCode' => '<string>',
'TZLocationCities' => '<string>',
'IsoNumber' => 123,
'TimeZoneSTDRules' => [
],
'TimeZoneDSTRules' => [
]
],
'MonEnabled' => true,
'MonStart' => '<string>',
'MonStop' => '<string>',
'TueEnabled' => true,
'TueStart' => '<string>',
'TueStop' => '<string>',
'WedEnabled' => true,
'WedStart' => '<string>',
'WedStop' => '<string>',
'ThuEnabled' => true,
'ThuStart' => '<string>',
'ThuStop' => '<string>',
'FriEnabled' => true,
'FriStart' => '<string>',
'FriStop' => '<string>',
'SatEnabled' => true,
'SatStart' => '<string>',
'SatStop' => '<string>',
'SunEnabled' => true,
'SunStart' => '<string>',
'SunStop' => '<string>',
'UseLunchHours' => true,
'LunchStart' => '<string>',
'LunchStop' => '<string>'
],
'Widget' => [
'AutoFaqEnabled' => true,
'AutoFaqCategory' => [
'KbCategoryId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Fullname' => '<string>',
'ParentId' => 123,
'SortOrder' => 123
],
'PreFormEnabled' => true,
'PreFormMessage' => '<string>',
'PostFormEnabled' => true,
'PostFormHeader' => '<string>',
'PostFormMessage' => '<string>',
'PostTranscriptEnabled' => true,
'LanguageIsoCode' => '<string>',
'Color' => '<string>',
'BadgeColor' => '<string>',
'BadgeTextColor' => '<string>',
'CustMsgColor' => '<string>',
'CustMsgTextColor' => '<string>',
'AgentMsgColor' => '<string>',
'AgentMsgTextColor' => '<string>',
'ButtonColor' => '<string>',
'ButtonTextColor' => '<string>',
'Font' => '<string>',
'FontSize' => '<string>',
'LogoEnabled' => true,
'LogoBlobId' => 123,
'LogoName' => '<string>',
'ShowAgentPhoto' => true,
'WelcomeTitle' => '<string>',
'WelcomeMessage' => '<string>',
'OfflineHeader' => '<string>',
'OfflineMessage' => '<string>',
'UseAgentFirstname' => true
],
'BotEnabled' => true,
'BotSettings' => [
'BotName' => '<string>',
'BotRegisterScriptId' => 123,
'BotSessionCreatedScriptId' => 123,
'BotSessionChangedScriptId' => 123,
'BotMessageReceivedScriptId' => 123
],
'OfflineCollectConsent' => true,
'WarnChatMessageMinutes' => 123,
'WarnManagerChatMessageMinutes' => 123,
'UseQueueOfflineForm' => true,
'OfflineFormTimeLimit' => 123,
'OfflineFormQueueLength' => 123,
'WidgetEnableRating' => true,
'WidgetRatingText' => '<string>',
'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/ChatTopic/{id}"
payload = {
"ChatTopicId": 123,
"Name": "<string>",
"Description": "<string>",
"WelcomeMessage": "<string>",
"Language": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"LastAccept": "2023-11-07T05:31:56Z",
"SecondsPrAccept": 123,
"AlertRecipient": "<string>",
"AlertTemplate": {
"ReplyTemplateId": 123,
"Name": "<string>",
"Description": "<string>",
"FolderId": 123
},
"CollectConsent": True,
"BadgeHeader": "<string>",
"CustomQueueTextEnabled": True,
"CustomQueueText": "<string>",
"WarnNewChatMinutes": 123,
"WarnManagerNewChatMinutes": 123,
"TicketEnabled": True,
"TicketCategory": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TicketPriority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"OpeningHoursEnabled": True,
"OpeningHours": {
"TzLocation": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"MonEnabled": True,
"MonStart": "<string>",
"MonStop": "<string>",
"TueEnabled": True,
"TueStart": "<string>",
"TueStop": "<string>",
"WedEnabled": True,
"WedStart": "<string>",
"WedStop": "<string>",
"ThuEnabled": True,
"ThuStart": "<string>",
"ThuStop": "<string>",
"FriEnabled": True,
"FriStart": "<string>",
"FriStop": "<string>",
"SatEnabled": True,
"SatStart": "<string>",
"SatStop": "<string>",
"SunEnabled": True,
"SunStart": "<string>",
"SunStop": "<string>",
"UseLunchHours": True,
"LunchStart": "<string>",
"LunchStop": "<string>"
},
"Widget": {
"AutoFaqEnabled": True,
"AutoFaqCategory": {
"KbCategoryId": 123,
"Name": "<string>",
"Description": "<string>",
"Fullname": "<string>",
"ParentId": 123,
"SortOrder": 123
},
"PreFormEnabled": True,
"PreFormMessage": "<string>",
"PostFormEnabled": True,
"PostFormHeader": "<string>",
"PostFormMessage": "<string>",
"PostTranscriptEnabled": True,
"LanguageIsoCode": "<string>",
"Color": "<string>",
"BadgeColor": "<string>",
"BadgeTextColor": "<string>",
"CustMsgColor": "<string>",
"CustMsgTextColor": "<string>",
"AgentMsgColor": "<string>",
"AgentMsgTextColor": "<string>",
"ButtonColor": "<string>",
"ButtonTextColor": "<string>",
"Font": "<string>",
"FontSize": "<string>",
"LogoEnabled": True,
"LogoBlobId": 123,
"LogoName": "<string>",
"ShowAgentPhoto": True,
"WelcomeTitle": "<string>",
"WelcomeMessage": "<string>",
"OfflineHeader": "<string>",
"OfflineMessage": "<string>",
"UseAgentFirstname": True
},
"BotEnabled": True,
"BotSettings": {
"BotName": "<string>",
"BotRegisterScriptId": 123,
"BotSessionCreatedScriptId": 123,
"BotSessionChangedScriptId": 123,
"BotMessageReceivedScriptId": 123
},
"OfflineCollectConsent": True,
"WarnChatMessageMinutes": 123,
"WarnManagerChatMessageMinutes": 123,
"UseQueueOfflineForm": True,
"OfflineFormTimeLimit": 123,
"OfflineFormQueueLength": 123,
"WidgetEnableRating": True,
"WidgetRatingText": "<string>",
"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({
ChatTopicId: 123,
Name: '<string>',
Description: '<string>',
WelcomeMessage: '<string>',
Language: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
LastAccept: '2023-11-07T05:31:56Z',
SecondsPrAccept: 123,
AlertRecipient: '<string>',
AlertTemplate: {ReplyTemplateId: 123, Name: '<string>', Description: '<string>', FolderId: 123},
CollectConsent: true,
BadgeHeader: '<string>',
CustomQueueTextEnabled: true,
CustomQueueText: '<string>',
WarnNewChatMinutes: 123,
WarnManagerNewChatMinutes: 123,
TicketEnabled: true,
TicketCategory: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TicketPriority: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
OpeningHoursEnabled: true,
OpeningHours: {
TzLocation: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
MonEnabled: true,
MonStart: '<string>',
MonStop: '<string>',
TueEnabled: true,
TueStart: '<string>',
TueStop: '<string>',
WedEnabled: true,
WedStart: '<string>',
WedStop: '<string>',
ThuEnabled: true,
ThuStart: '<string>',
ThuStop: '<string>',
FriEnabled: true,
FriStart: '<string>',
FriStop: '<string>',
SatEnabled: true,
SatStart: '<string>',
SatStop: '<string>',
SunEnabled: true,
SunStart: '<string>',
SunStop: '<string>',
UseLunchHours: true,
LunchStart: '<string>',
LunchStop: '<string>'
},
Widget: {
AutoFaqEnabled: true,
AutoFaqCategory: {
KbCategoryId: 123,
Name: '<string>',
Description: '<string>',
Fullname: '<string>',
ParentId: 123,
SortOrder: 123
},
PreFormEnabled: true,
PreFormMessage: '<string>',
PostFormEnabled: true,
PostFormHeader: '<string>',
PostFormMessage: '<string>',
PostTranscriptEnabled: true,
LanguageIsoCode: '<string>',
Color: '<string>',
BadgeColor: '<string>',
BadgeTextColor: '<string>',
CustMsgColor: '<string>',
CustMsgTextColor: '<string>',
AgentMsgColor: '<string>',
AgentMsgTextColor: '<string>',
ButtonColor: '<string>',
ButtonTextColor: '<string>',
Font: '<string>',
FontSize: '<string>',
LogoEnabled: true,
LogoBlobId: 123,
LogoName: '<string>',
ShowAgentPhoto: true,
WelcomeTitle: '<string>',
WelcomeMessage: '<string>',
OfflineHeader: '<string>',
OfflineMessage: '<string>',
UseAgentFirstname: true
},
BotEnabled: true,
BotSettings: {
BotName: '<string>',
BotRegisterScriptId: 123,
BotSessionCreatedScriptId: 123,
BotSessionChangedScriptId: 123,
BotMessageReceivedScriptId: 123
},
OfflineCollectConsent: true,
WarnChatMessageMinutes: 123,
WarnManagerChatMessageMinutes: 123,
UseQueueOfflineForm: true,
OfflineFormTimeLimit: 123,
OfflineFormQueueLength: 123,
WidgetEnableRating: true,
WidgetRatingText: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatTopic/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ChatTopicId": 123,
"Name": "<string>",
"Description": "<string>",
"WelcomeMessage": "<string>",
"Language": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"LastAccept": "2023-11-07T05:31:56Z",
"SecondsPrAccept": 123,
"AlertRecipient": "<string>",
"AlertTemplate": {
"ReplyTemplateId": 123,
"Name": "<string>",
"Description": "<string>",
"FolderId": 123
},
"CollectConsent": true,
"BadgeHeader": "<string>",
"CustomQueueTextEnabled": true,
"CustomQueueText": "<string>",
"WarnNewChatMinutes": 123,
"WarnManagerNewChatMinutes": 123,
"TicketEnabled": true,
"TicketCategory": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TicketPriority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"OpeningHoursEnabled": true,
"OpeningHours": {
"TzLocation": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"MonEnabled": true,
"MonStart": "<string>",
"MonStop": "<string>",
"TueEnabled": true,
"TueStart": "<string>",
"TueStop": "<string>",
"WedEnabled": true,
"WedStart": "<string>",
"WedStop": "<string>",
"ThuEnabled": true,
"ThuStart": "<string>",
"ThuStop": "<string>",
"FriEnabled": true,
"FriStart": "<string>",
"FriStop": "<string>",
"SatEnabled": true,
"SatStart": "<string>",
"SatStop": "<string>",
"SunEnabled": true,
"SunStart": "<string>",
"SunStop": "<string>",
"UseLunchHours": true,
"LunchStart": "<string>",
"LunchStop": "<string>"
},
"Widget": {
"AutoFaqEnabled": true,
"AutoFaqCategory": {
"KbCategoryId": 123,
"Name": "<string>",
"Description": "<string>",
"Fullname": "<string>",
"ParentId": 123,
"SortOrder": 123
},
"PreFormEnabled": true,
"PreFormMessage": "<string>",
"RequiredFields": "None",
"PostFormEnabled": true,
"PostFormHeader": "<string>",
"PostFormMessage": "<string>",
"PostTranscriptEnabled": true,
"LanguageIsoCode": "<string>",
"Size": "Normal",
"Theme": "Classic",
"Color": "<string>",
"BadgeColor": "<string>",
"BadgeTextColor": "<string>",
"CustMsgColor": "<string>",
"CustMsgTextColor": "<string>",
"AgentMsgColor": "<string>",
"AgentMsgTextColor": "<string>",
"ButtonColor": "<string>",
"ButtonTextColor": "<string>",
"Font": "<string>",
"FontSize": "<string>",
"LogoEnabled": true,
"LogoBlobId": 123,
"LogoName": "<string>",
"ShowAgentPhoto": true,
"WelcomeTitle": "<string>",
"WelcomeMessage": "<string>",
"OfflineHeader": "<string>",
"OfflineMessage": "<string>",
"OfflineFields": "None",
"UseAgentFirstname": true
},
"BotEnabled": true,
"BotSettings": {
"BotName": "<string>",
"BotRegisterScriptId": 123,
"BotSessionCreatedScriptId": 123,
"BotSessionChangedScriptId": 123,
"BotMessageReceivedScriptId": 123
},
"OfflineCollectConsent": true,
"WarnChatMessageMinutes": 123,
"WarnManagerChatMessageMinutes": 123,
"UseQueueOfflineForm": true,
"OfflineFormTimeLimit": 123,
"OfflineFormQueueLength": 123,
"WidgetEnableRating": true,
"WidgetRatingText": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {},
"_Links": {}
}Put Chat Topic Entity
Updates the existing ChatTopicEntity
NsApiSlow threshold: 5000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/ChatTopic/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"ChatTopicId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"WelcomeMessage\": \"<string>\",\n \"Language\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"LastAccept\": \"2023-11-07T05:31:56Z\",\n \"SecondsPrAccept\": 123,\n \"AlertRecipient\": \"<string>\",\n \"AlertTemplate\": {\n \"ReplyTemplateId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"FolderId\": 123\n },\n \"CollectConsent\": true,\n \"BadgeHeader\": \"<string>\",\n \"CustomQueueTextEnabled\": true,\n \"CustomQueueText\": \"<string>\",\n \"WarnNewChatMinutes\": 123,\n \"WarnManagerNewChatMinutes\": 123,\n \"TicketEnabled\": true,\n \"TicketCategory\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"TicketPriority\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"OpeningHoursEnabled\": true,\n \"OpeningHours\": {\n \"TzLocation\": {\n \"TZLocationID\": 123,\n \"Name\": \"<string>\",\n \"TZLocationCode\": \"<string>\",\n \"TZLocationCities\": \"<string>\",\n \"IsoNumber\": 123,\n \"TimeZoneSTDRules\": {},\n \"TimeZoneDSTRules\": {}\n },\n \"MonEnabled\": true,\n \"MonStart\": \"<string>\",\n \"MonStop\": \"<string>\",\n \"TueEnabled\": true,\n \"TueStart\": \"<string>\",\n \"TueStop\": \"<string>\",\n \"WedEnabled\": true,\n \"WedStart\": \"<string>\",\n \"WedStop\": \"<string>\",\n \"ThuEnabled\": true,\n \"ThuStart\": \"<string>\",\n \"ThuStop\": \"<string>\",\n \"FriEnabled\": true,\n \"FriStart\": \"<string>\",\n \"FriStop\": \"<string>\",\n \"SatEnabled\": true,\n \"SatStart\": \"<string>\",\n \"SatStop\": \"<string>\",\n \"SunEnabled\": true,\n \"SunStart\": \"<string>\",\n \"SunStop\": \"<string>\",\n \"UseLunchHours\": true,\n \"LunchStart\": \"<string>\",\n \"LunchStop\": \"<string>\"\n },\n \"Widget\": {\n \"AutoFaqEnabled\": true,\n \"AutoFaqCategory\": {\n \"KbCategoryId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Fullname\": \"<string>\",\n \"ParentId\": 123,\n \"SortOrder\": 123\n },\n \"PreFormEnabled\": true,\n \"PreFormMessage\": \"<string>\",\n \"PostFormEnabled\": true,\n \"PostFormHeader\": \"<string>\",\n \"PostFormMessage\": \"<string>\",\n \"PostTranscriptEnabled\": true,\n \"LanguageIsoCode\": \"<string>\",\n \"Color\": \"<string>\",\n \"BadgeColor\": \"<string>\",\n \"BadgeTextColor\": \"<string>\",\n \"CustMsgColor\": \"<string>\",\n \"CustMsgTextColor\": \"<string>\",\n \"AgentMsgColor\": \"<string>\",\n \"AgentMsgTextColor\": \"<string>\",\n \"ButtonColor\": \"<string>\",\n \"ButtonTextColor\": \"<string>\",\n \"Font\": \"<string>\",\n \"FontSize\": \"<string>\",\n \"LogoEnabled\": true,\n \"LogoBlobId\": 123,\n \"LogoName\": \"<string>\",\n \"ShowAgentPhoto\": true,\n \"WelcomeTitle\": \"<string>\",\n \"WelcomeMessage\": \"<string>\",\n \"OfflineHeader\": \"<string>\",\n \"OfflineMessage\": \"<string>\",\n \"UseAgentFirstname\": true\n },\n \"BotEnabled\": true,\n \"BotSettings\": {\n \"BotName\": \"<string>\",\n \"BotRegisterScriptId\": 123,\n \"BotSessionCreatedScriptId\": 123,\n \"BotSessionChangedScriptId\": 123,\n \"BotMessageReceivedScriptId\": 123\n },\n \"OfflineCollectConsent\": true,\n \"WarnChatMessageMinutes\": 123,\n \"WarnManagerChatMessageMinutes\": 123,\n \"UseQueueOfflineForm\": true,\n \"OfflineFormTimeLimit\": 123,\n \"OfflineFormQueueLength\": 123,\n \"WidgetEnableRating\": true,\n \"WidgetRatingText\": \"<string>\",\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({
ChatTopicId: 123,
Name: '<string>',
Description: '<string>',
WelcomeMessage: '<string>',
Language: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
LastAccept: '2023-11-07T05:31:56Z',
SecondsPrAccept: 123,
AlertRecipient: '<string>',
AlertTemplate: {ReplyTemplateId: 123, Name: '<string>', Description: '<string>', FolderId: 123},
CollectConsent: true,
BadgeHeader: '<string>',
CustomQueueTextEnabled: true,
CustomQueueText: '<string>',
WarnNewChatMinutes: 123,
WarnManagerNewChatMinutes: 123,
TicketEnabled: true,
TicketCategory: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TicketPriority: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
OpeningHoursEnabled: true,
OpeningHours: {
TzLocation: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
MonEnabled: true,
MonStart: '<string>',
MonStop: '<string>',
TueEnabled: true,
TueStart: '<string>',
TueStop: '<string>',
WedEnabled: true,
WedStart: '<string>',
WedStop: '<string>',
ThuEnabled: true,
ThuStart: '<string>',
ThuStop: '<string>',
FriEnabled: true,
FriStart: '<string>',
FriStop: '<string>',
SatEnabled: true,
SatStart: '<string>',
SatStop: '<string>',
SunEnabled: true,
SunStart: '<string>',
SunStop: '<string>',
UseLunchHours: true,
LunchStart: '<string>',
LunchStop: '<string>'
},
Widget: {
AutoFaqEnabled: true,
AutoFaqCategory: {
KbCategoryId: 123,
Name: '<string>',
Description: '<string>',
Fullname: '<string>',
ParentId: 123,
SortOrder: 123
},
PreFormEnabled: true,
PreFormMessage: '<string>',
PostFormEnabled: true,
PostFormHeader: '<string>',
PostFormMessage: '<string>',
PostTranscriptEnabled: true,
LanguageIsoCode: '<string>',
Color: '<string>',
BadgeColor: '<string>',
BadgeTextColor: '<string>',
CustMsgColor: '<string>',
CustMsgTextColor: '<string>',
AgentMsgColor: '<string>',
AgentMsgTextColor: '<string>',
ButtonColor: '<string>',
ButtonTextColor: '<string>',
Font: '<string>',
FontSize: '<string>',
LogoEnabled: true,
LogoBlobId: 123,
LogoName: '<string>',
ShowAgentPhoto: true,
WelcomeTitle: '<string>',
WelcomeMessage: '<string>',
OfflineHeader: '<string>',
OfflineMessage: '<string>',
UseAgentFirstname: true
},
BotEnabled: true,
BotSettings: {
BotName: '<string>',
BotRegisterScriptId: 123,
BotSessionCreatedScriptId: 123,
BotSessionChangedScriptId: 123,
BotMessageReceivedScriptId: 123
},
OfflineCollectConsent: true,
WarnChatMessageMinutes: 123,
WarnManagerChatMessageMinutes: 123,
UseQueueOfflineForm: true,
OfflineFormTimeLimit: 123,
OfflineFormQueueLength: 123,
WidgetEnableRating: true,
WidgetRatingText: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatTopic/{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/ChatTopic/{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([
'ChatTopicId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'WelcomeMessage' => '<string>',
'Language' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'LastAccept' => '2023-11-07T05:31:56Z',
'SecondsPrAccept' => 123,
'AlertRecipient' => '<string>',
'AlertTemplate' => [
'ReplyTemplateId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'FolderId' => 123
],
'CollectConsent' => true,
'BadgeHeader' => '<string>',
'CustomQueueTextEnabled' => true,
'CustomQueueText' => '<string>',
'WarnNewChatMinutes' => 123,
'WarnManagerNewChatMinutes' => 123,
'TicketEnabled' => true,
'TicketCategory' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'TicketPriority' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'OpeningHoursEnabled' => true,
'OpeningHours' => [
'TzLocation' => [
'TZLocationID' => 123,
'Name' => '<string>',
'TZLocationCode' => '<string>',
'TZLocationCities' => '<string>',
'IsoNumber' => 123,
'TimeZoneSTDRules' => [
],
'TimeZoneDSTRules' => [
]
],
'MonEnabled' => true,
'MonStart' => '<string>',
'MonStop' => '<string>',
'TueEnabled' => true,
'TueStart' => '<string>',
'TueStop' => '<string>',
'WedEnabled' => true,
'WedStart' => '<string>',
'WedStop' => '<string>',
'ThuEnabled' => true,
'ThuStart' => '<string>',
'ThuStop' => '<string>',
'FriEnabled' => true,
'FriStart' => '<string>',
'FriStop' => '<string>',
'SatEnabled' => true,
'SatStart' => '<string>',
'SatStop' => '<string>',
'SunEnabled' => true,
'SunStart' => '<string>',
'SunStop' => '<string>',
'UseLunchHours' => true,
'LunchStart' => '<string>',
'LunchStop' => '<string>'
],
'Widget' => [
'AutoFaqEnabled' => true,
'AutoFaqCategory' => [
'KbCategoryId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'Fullname' => '<string>',
'ParentId' => 123,
'SortOrder' => 123
],
'PreFormEnabled' => true,
'PreFormMessage' => '<string>',
'PostFormEnabled' => true,
'PostFormHeader' => '<string>',
'PostFormMessage' => '<string>',
'PostTranscriptEnabled' => true,
'LanguageIsoCode' => '<string>',
'Color' => '<string>',
'BadgeColor' => '<string>',
'BadgeTextColor' => '<string>',
'CustMsgColor' => '<string>',
'CustMsgTextColor' => '<string>',
'AgentMsgColor' => '<string>',
'AgentMsgTextColor' => '<string>',
'ButtonColor' => '<string>',
'ButtonTextColor' => '<string>',
'Font' => '<string>',
'FontSize' => '<string>',
'LogoEnabled' => true,
'LogoBlobId' => 123,
'LogoName' => '<string>',
'ShowAgentPhoto' => true,
'WelcomeTitle' => '<string>',
'WelcomeMessage' => '<string>',
'OfflineHeader' => '<string>',
'OfflineMessage' => '<string>',
'UseAgentFirstname' => true
],
'BotEnabled' => true,
'BotSettings' => [
'BotName' => '<string>',
'BotRegisterScriptId' => 123,
'BotSessionCreatedScriptId' => 123,
'BotSessionChangedScriptId' => 123,
'BotMessageReceivedScriptId' => 123
],
'OfflineCollectConsent' => true,
'WarnChatMessageMinutes' => 123,
'WarnManagerChatMessageMinutes' => 123,
'UseQueueOfflineForm' => true,
'OfflineFormTimeLimit' => 123,
'OfflineFormQueueLength' => 123,
'WidgetEnableRating' => true,
'WidgetRatingText' => '<string>',
'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/ChatTopic/{id}"
payload = {
"ChatTopicId": 123,
"Name": "<string>",
"Description": "<string>",
"WelcomeMessage": "<string>",
"Language": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"LastAccept": "2023-11-07T05:31:56Z",
"SecondsPrAccept": 123,
"AlertRecipient": "<string>",
"AlertTemplate": {
"ReplyTemplateId": 123,
"Name": "<string>",
"Description": "<string>",
"FolderId": 123
},
"CollectConsent": True,
"BadgeHeader": "<string>",
"CustomQueueTextEnabled": True,
"CustomQueueText": "<string>",
"WarnNewChatMinutes": 123,
"WarnManagerNewChatMinutes": 123,
"TicketEnabled": True,
"TicketCategory": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TicketPriority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"OpeningHoursEnabled": True,
"OpeningHours": {
"TzLocation": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"MonEnabled": True,
"MonStart": "<string>",
"MonStop": "<string>",
"TueEnabled": True,
"TueStart": "<string>",
"TueStop": "<string>",
"WedEnabled": True,
"WedStart": "<string>",
"WedStop": "<string>",
"ThuEnabled": True,
"ThuStart": "<string>",
"ThuStop": "<string>",
"FriEnabled": True,
"FriStart": "<string>",
"FriStop": "<string>",
"SatEnabled": True,
"SatStart": "<string>",
"SatStop": "<string>",
"SunEnabled": True,
"SunStart": "<string>",
"SunStop": "<string>",
"UseLunchHours": True,
"LunchStart": "<string>",
"LunchStop": "<string>"
},
"Widget": {
"AutoFaqEnabled": True,
"AutoFaqCategory": {
"KbCategoryId": 123,
"Name": "<string>",
"Description": "<string>",
"Fullname": "<string>",
"ParentId": 123,
"SortOrder": 123
},
"PreFormEnabled": True,
"PreFormMessage": "<string>",
"PostFormEnabled": True,
"PostFormHeader": "<string>",
"PostFormMessage": "<string>",
"PostTranscriptEnabled": True,
"LanguageIsoCode": "<string>",
"Color": "<string>",
"BadgeColor": "<string>",
"BadgeTextColor": "<string>",
"CustMsgColor": "<string>",
"CustMsgTextColor": "<string>",
"AgentMsgColor": "<string>",
"AgentMsgTextColor": "<string>",
"ButtonColor": "<string>",
"ButtonTextColor": "<string>",
"Font": "<string>",
"FontSize": "<string>",
"LogoEnabled": True,
"LogoBlobId": 123,
"LogoName": "<string>",
"ShowAgentPhoto": True,
"WelcomeTitle": "<string>",
"WelcomeMessage": "<string>",
"OfflineHeader": "<string>",
"OfflineMessage": "<string>",
"UseAgentFirstname": True
},
"BotEnabled": True,
"BotSettings": {
"BotName": "<string>",
"BotRegisterScriptId": 123,
"BotSessionCreatedScriptId": 123,
"BotSessionChangedScriptId": 123,
"BotMessageReceivedScriptId": 123
},
"OfflineCollectConsent": True,
"WarnChatMessageMinutes": 123,
"WarnManagerChatMessageMinutes": 123,
"UseQueueOfflineForm": True,
"OfflineFormTimeLimit": 123,
"OfflineFormQueueLength": 123,
"WidgetEnableRating": True,
"WidgetRatingText": "<string>",
"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({
ChatTopicId: 123,
Name: '<string>',
Description: '<string>',
WelcomeMessage: '<string>',
Language: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
LastAccept: '2023-11-07T05:31:56Z',
SecondsPrAccept: 123,
AlertRecipient: '<string>',
AlertTemplate: {ReplyTemplateId: 123, Name: '<string>', Description: '<string>', FolderId: 123},
CollectConsent: true,
BadgeHeader: '<string>',
CustomQueueTextEnabled: true,
CustomQueueText: '<string>',
WarnNewChatMinutes: 123,
WarnManagerNewChatMinutes: 123,
TicketEnabled: true,
TicketCategory: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
TicketPriority: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
OpeningHoursEnabled: true,
OpeningHours: {
TzLocation: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
MonEnabled: true,
MonStart: '<string>',
MonStop: '<string>',
TueEnabled: true,
TueStart: '<string>',
TueStop: '<string>',
WedEnabled: true,
WedStart: '<string>',
WedStop: '<string>',
ThuEnabled: true,
ThuStart: '<string>',
ThuStop: '<string>',
FriEnabled: true,
FriStart: '<string>',
FriStop: '<string>',
SatEnabled: true,
SatStart: '<string>',
SatStop: '<string>',
SunEnabled: true,
SunStart: '<string>',
SunStop: '<string>',
UseLunchHours: true,
LunchStart: '<string>',
LunchStop: '<string>'
},
Widget: {
AutoFaqEnabled: true,
AutoFaqCategory: {
KbCategoryId: 123,
Name: '<string>',
Description: '<string>',
Fullname: '<string>',
ParentId: 123,
SortOrder: 123
},
PreFormEnabled: true,
PreFormMessage: '<string>',
PostFormEnabled: true,
PostFormHeader: '<string>',
PostFormMessage: '<string>',
PostTranscriptEnabled: true,
LanguageIsoCode: '<string>',
Color: '<string>',
BadgeColor: '<string>',
BadgeTextColor: '<string>',
CustMsgColor: '<string>',
CustMsgTextColor: '<string>',
AgentMsgColor: '<string>',
AgentMsgTextColor: '<string>',
ButtonColor: '<string>',
ButtonTextColor: '<string>',
Font: '<string>',
FontSize: '<string>',
LogoEnabled: true,
LogoBlobId: 123,
LogoName: '<string>',
ShowAgentPhoto: true,
WelcomeTitle: '<string>',
WelcomeMessage: '<string>',
OfflineHeader: '<string>',
OfflineMessage: '<string>',
UseAgentFirstname: true
},
BotEnabled: true,
BotSettings: {
BotName: '<string>',
BotRegisterScriptId: 123,
BotSessionCreatedScriptId: 123,
BotSessionChangedScriptId: 123,
BotMessageReceivedScriptId: 123
},
OfflineCollectConsent: true,
WarnChatMessageMinutes: 123,
WarnManagerChatMessageMinutes: 123,
UseQueueOfflineForm: true,
OfflineFormTimeLimit: 123,
OfflineFormQueueLength: 123,
WidgetEnableRating: true,
WidgetRatingText: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/ChatTopic/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ChatTopicId": 123,
"Name": "<string>",
"Description": "<string>",
"WelcomeMessage": "<string>",
"Language": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"LastAccept": "2023-11-07T05:31:56Z",
"SecondsPrAccept": 123,
"AlertRecipient": "<string>",
"AlertTemplate": {
"ReplyTemplateId": 123,
"Name": "<string>",
"Description": "<string>",
"FolderId": 123
},
"CollectConsent": true,
"BadgeHeader": "<string>",
"CustomQueueTextEnabled": true,
"CustomQueueText": "<string>",
"WarnNewChatMinutes": 123,
"WarnManagerNewChatMinutes": 123,
"TicketEnabled": true,
"TicketCategory": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"TicketPriority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"OpeningHoursEnabled": true,
"OpeningHours": {
"TzLocation": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"MonEnabled": true,
"MonStart": "<string>",
"MonStop": "<string>",
"TueEnabled": true,
"TueStart": "<string>",
"TueStop": "<string>",
"WedEnabled": true,
"WedStart": "<string>",
"WedStop": "<string>",
"ThuEnabled": true,
"ThuStart": "<string>",
"ThuStop": "<string>",
"FriEnabled": true,
"FriStart": "<string>",
"FriStop": "<string>",
"SatEnabled": true,
"SatStart": "<string>",
"SatStop": "<string>",
"SunEnabled": true,
"SunStart": "<string>",
"SunStop": "<string>",
"UseLunchHours": true,
"LunchStart": "<string>",
"LunchStop": "<string>"
},
"Widget": {
"AutoFaqEnabled": true,
"AutoFaqCategory": {
"KbCategoryId": 123,
"Name": "<string>",
"Description": "<string>",
"Fullname": "<string>",
"ParentId": 123,
"SortOrder": 123
},
"PreFormEnabled": true,
"PreFormMessage": "<string>",
"RequiredFields": "None",
"PostFormEnabled": true,
"PostFormHeader": "<string>",
"PostFormMessage": "<string>",
"PostTranscriptEnabled": true,
"LanguageIsoCode": "<string>",
"Size": "Normal",
"Theme": "Classic",
"Color": "<string>",
"BadgeColor": "<string>",
"BadgeTextColor": "<string>",
"CustMsgColor": "<string>",
"CustMsgTextColor": "<string>",
"AgentMsgColor": "<string>",
"AgentMsgTextColor": "<string>",
"ButtonColor": "<string>",
"ButtonTextColor": "<string>",
"Font": "<string>",
"FontSize": "<string>",
"LogoEnabled": true,
"LogoBlobId": 123,
"LogoName": "<string>",
"ShowAgentPhoto": true,
"WelcomeTitle": "<string>",
"WelcomeMessage": "<string>",
"OfflineHeader": "<string>",
"OfflineMessage": "<string>",
"OfflineFields": "None",
"UseAgentFirstname": true
},
"BotEnabled": true,
"BotSettings": {
"BotName": "<string>",
"BotRegisterScriptId": 123,
"BotSessionCreatedScriptId": 123,
"BotSessionChangedScriptId": 123,
"BotMessageReceivedScriptId": 123
},
"OfflineCollectConsent": true,
"WarnChatMessageMinutes": 123,
"WarnManagerChatMessageMinutes": 123,
"UseQueueOfflineForm": true,
"OfflineFormTimeLimit": 123,
"OfflineFormQueueLength": 123,
"WidgetEnableRating": true,
"WidgetRatingText": "<string>",
"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 ChatTopicEntity 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 ChatTopicEntity to be saved.
Chat topics define who is assigned, when the channel is open for business, and look of the chat widget. Carrier object for ChatTopicEntity. Services for the ChatTopicEntity Carrier is available from the Chat Agent.
The primary key (auto-incremented)
The name of this chat topic
The descriptiong for this topic.
The welcome message sent to the customer when the chat session starts.
Customer languages that customer center supports. Carrier object for CustomerLanguage. Services for the CustomerLanguage Carrier is available from the List Agent.
Show child attributes
Show child attributes
The last time a session was accepted from the inside for this topic.
The average number of seconds per accept for this topic.
The recipient(s) for the alert template
Reply template item Carrier object for ReplyTemplate. Services for the ReplyTemplate Carrier is available from the CustomerService Agent.
Show child attributes
Show child attributes
Collect consent to store from user
The badge header of the chat topic
Use the custom queue message text
A text to be used in the queue message in the chat widget. Usage is controlled by the flags field, bit number 3
Contains the user notify time in minutes
Contains the manager notify time in minutes
Enable ticket submission in offline mode
Ticket Category - light read-only version of TicketCategoryEntity. Carrier object for TicketCategory. Services for the TicketCategory Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for TicketPriority. Services for the TicketPriority Carrier is available from the List Agent.
Show child attributes
Show child attributes
Whether to use opening hours or not.
Chat Topic Opening Hours Carrier object for ChatOpeningHours. Services for the ChatOpeningHours Carrier is available from the Chat Agent.
Show child attributes
Show child attributes
Defines the look of the chat widget. Carrier object for ChatWidgetSettings. Services for the ChatWidgetSettings Carrier is available from the Chat Agent.
Show child attributes
Show child attributes
Enable chatbot on this topic. Run the trigger scripts on bot events.
Chat Topic bot settings. Trigger script ids to run on bot events Carrier object for ChatBotSettings. Services for the ChatBotSettings Carrier is available from the Chat Agent.
Show child attributes
Show child attributes
Collect offline consent to store from user
Contains the user notify time in minutes for new chat messages
Contains the manager notify time in minutes for new chat messages
Use offline form capability from chat queue
The number of minutes in the queue before the offline form is available
The number of customers in the queue before the offline form is available
Enable rating functionality in the chat widgte
The text to be displayed in the widget next to the rating stars
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
ChatTopicEntity updated.
Chat topics define who is assigned, when the channel is open for business, and look of the chat widget. ChatTopicEntity entity with API _Links added.
The primary key (auto-incremented)
The name of this chat topic
The descriptiong for this topic.
The welcome message sent to the customer when the chat session starts.
Customer languages that customer center supports. Carrier object for CustomerLanguage. Services for the CustomerLanguage Carrier is available from the List Agent.
Show child attributes
Show child attributes
The last time a session was accepted from the inside for this topic.
The average number of seconds per accept for this topic.
The recipient(s) for the alert template
Reply template item Carrier object for ReplyTemplate. Services for the ReplyTemplate Carrier is available from the CustomerService Agent.
Show child attributes
Show child attributes
Collect consent to store from user
The badge header of the chat topic
Use the custom queue message text
A text to be used in the queue message in the chat widget. Usage is controlled by the flags field, bit number 3
Contains the user notify time in minutes
Contains the manager notify time in minutes
Enable ticket submission in offline mode
Ticket Category - light read-only version of TicketCategoryEntity. Carrier object for TicketCategory. Services for the TicketCategory Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for TicketPriority. Services for the TicketPriority Carrier is available from the List Agent.
Show child attributes
Show child attributes
Whether to use opening hours or not.
Chat Topic Opening Hours Carrier object for ChatOpeningHours. Services for the ChatOpeningHours Carrier is available from the Chat Agent.
Show child attributes
Show child attributes
Defines the look of the chat widget. Carrier object for ChatWidgetSettings. Services for the ChatWidgetSettings Carrier is available from the Chat Agent.
Show child attributes
Show child attributes
Enable chatbot on this topic. Run the trigger scripts on bot events.
Chat Topic bot settings. Trigger script ids to run on bot events Carrier object for ChatBotSettings. Services for the ChatBotSettings Carrier is available from the Chat Agent.
Show child attributes
Show child attributes
Collect offline consent to store from user
Contains the user notify time in minutes for new chat messages
Contains the manager notify time in minutes for new chat messages
Use offline form capability from chat queue
The number of minutes in the queue before the offline form is available
The number of customers in the queue before the offline form is available
Enable rating functionality in the chat widgte
The text to be displayed in the widget next to the rating stars
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
Put Chat Session EntityDelete Chat Topic EntityNSChatTopicEntityPost Chat Topic EntityGet Chat Topic EntityDefault Chat Topic Entity