Api session event editor overlay set legend entry value

From Tygron Support wiki
Jump to navigation Jump to search
This functionality is deprecated and will be removed in the future.

API Endpoint: api/session/event/editoroverlay/set_legend_entry_value/

Description: Change the value of a specified legend entry of a custom legend of a specified Overlay.

Index Importance Type Description Values
0 REQUIRED (OVERLAY Integer ID) Overlay ID
1 REQUIRED (true, false) Affect the custom difference legend (false means affect the normal custom legend) true or false
2 REQUIRED (Integer number) ID of entry which should be changed
3 REQUIRED (Floating point number) New value for the entry

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/editoroverlay/set_legend_entry_value/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, true, 1, 35 ]'

Curl example multi item POST

curl 'https://engine.tygron.com/api/session/event/editoroverlay/set_legend_entry_value/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, true, 1, 11 ]'

JavaScript example POST

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