using RestSharp;
var options = new RestClientOptions("http://localhost:65002/api/v1/Agents/Chat/SaveChatTopicEntity");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
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.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', '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:65002/api/v1/Agents/Chat/SaveChatTopicEntity', 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 => "65002",
CURLOPT_URL => "http://localhost:65002/api/v1/Agents/Chat/SaveChatTopicEntity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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 => [
"Authorization: Bearer <token>",
"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:65002/api/v1/Agents/Chat/SaveChatTopicEntity"
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 = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', '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:65002/api/v1/Agents/Chat/SaveChatTopicEntity', 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": {}
}Save Chat Topic Entity
Updates the existing ChatTopicEntity or creates a new ChatTopicEntity if the id parameter is 0.
NsApiSlow threshold: 5000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:65002/api/v1/Agents/Chat/SaveChatTopicEntity");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
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.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', '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:65002/api/v1/Agents/Chat/SaveChatTopicEntity', 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 => "65002",
CURLOPT_URL => "http://localhost:65002/api/v1/Agents/Chat/SaveChatTopicEntity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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 => [
"Authorization: Bearer <token>",
"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:65002/api/v1/Agents/Chat/SaveChatTopicEntity"
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 = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', '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:65002/api/v1/Agents/Chat/SaveChatTopicEntity', 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": {}
}Authorizations
SuperOffice SuperId OAuth implicit flow. You need to issue a request to the SuperId authorization URL https://online.superoffice.com/login/common/oauth/authorize?response_type=token &client_id=670734e0-4c5a-11e3-be9e-a171392e81db &redirect_uri=https://example.com/spa/
passing in the application id and redirect URL.
SuperId will log the user in, and redirect to the requested redirect URL with a #payload containing the access token and claims. (The redirect URL must be registered with SuperId in advance)
https://example.com/spa#access_token=8A%3aCust12227.AXRrCITpPBvQX3UbIohb &token_type=bearer &state= &expires_in=3600 &ctx=Cust12227 &netserver_url=https%3a%2f%2fsod.superoffice.com%2fCust12227%2fRemote%2fServices82%2f
You can take the #access_token value and pass it as the Authenticate HTTP header as a BEARER token.
Headers
Body
The ChatTopicEntity that is 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.
Response
OK
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.