Api session event editor chatchannel add item channel

From Tygron Support wiki
Revision as of 07:35, 22 September 2026 by Frank@tygron.nl (talk | contribs) (Created page with "API Endpoint: api/session/event/editorchatchannel/add_item_channel/ Description: Add Chat Channel related to specfic Item {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | REQUIRED | (MapLink or multiple values in array [a, b, c]) | Item Maplink | |- | 1 | REQUIRED | (Integer number or multiple integer values in array [1, 2, 3]) | Item ID | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- | 200 | Int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: api/session/event/editorchatchannel/add_item_channel/

Description: Add Chat Channel related to specfic Item

Index Importance Type Description Values
0 REQUIRED (MapLink or multiple values in array [a, b, c]) Item Maplink
1 REQUIRED (Integer number or multiple integer values in array [1, 2, 3]) Item ID

Response Codes

Response Code: Description
200 Integer[] (ChatChannel IDs)
300-600 Codes Overview

Example POST

Curl example POST

curl 'https://engine.tygron.com/api/session/event/editorchatchannel/add_item_channel/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "SETTINGS", 1 ]'

Curl example multi item POST

curl 'https://engine.tygron.com/api/session/event/editorchatchannel/add_item_channel/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ [ "SETTINGS", "ACTION_MENUS", "ADDRESSES" ], [ 1, 2, 3 ] ]'

JavaScript example POST

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