Api session event editor global add query

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: editorglobal/add_query.

Description: Add Query

Name Importance Type Description Values
0 REQUIRED (String) String

Response Codes

Response Code: Description
200 Integer (Integer)
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editorglobal/add_query/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"Text"'

JavaScript example POST:

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