Api session event editor setting set grid cell size

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: editorsetting/set_grid_cell_size.

Description: Change the project's grid cell size, used by active Overlay.

Name Importance Type Description Values
0 REQUIRED (Floating point number) The new grid cell size in meters.

Response Codes

Response Code: Description
200 Boolean (Value is updated)
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editorsetting/set_grid_cell_size/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '65'

Curl example multi item POST:

curl 'https://engine.tygron.com/api/session/event/editorsetting/set_grid_cell_size/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '57'

JavaScript example POST:

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