Api session event editor chat reset channel: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
API Endpoint to Reset Channel.
API Endpoint: editorchat/reset_channel.


API Endpoint name is Api session event editor chat reset channel
API Endpoint name is Api session event editor chat reset channel.
 
Use this endpoint to Reset Channel


{|class=wikitable
{|class=wikitable
Line 28: Line 30:
|}
|}
===Example POST===
===Example POST===
Curl Example POST:
Curl example POST:


<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorchat/reset_channel/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"DOMAIN"'
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorchat/reset_channel/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"DOMAIN"'
</syntaxhighlight>
</syntaxhighlight>
JavaScript Example POST:
JavaScript example POST:


<syntaxhighlight lang="text" copy>var options = {
<syntaxhighlight lang="text" copy>var options = {
Line 45: Line 47:
</syntaxhighlight>
</syntaxhighlight>
{{article end|seealso=*[[Api session event editor chat]]
{{article end|seealso=*[[Api session event editor chat]]
*[[Api session items chatmessages]]
}}
}}


[[Category:API]]
[[Category:API]]

Revision as of 11:23, 10 April 2026

API Endpoint: editorchat/reset_channel.

API Endpoint name is Api session event editor chat reset channel.

Use this endpoint to Reset Channel

Name Importance Type Description Values
0 REQUIRED (Enumeration) Channel AI_ASSISTANT or DOMAIN

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editorchat/reset_channel/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"DOMAIN"'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '"DOMAIN"'
};
fetch("https://engine.tygron.com/api/session/event/editorchat/reset_channel/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));