Api session event editor building generate rotation angles

From Tygron Support wiki
Revision as of 09:40, 10 April 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

API Endpoint to Calculation a rotation angle for Building having the identifying attribute polygons, optionally only for specified Building..

API Endpoint name is Api session event editor building generate rotation angles

Name Importance Type Description Values
0 REQUIRED (String) Identifying attribute
1 REQUIRED (String) Rotation attribute
2 OPTIONAL (BUILDING Integer ID or multiple values in array [1, 2, 3]) Specific BuildingIDs only (optional)

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/editorbuilding/generate_rotation_angles/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Identifying attribute", "Rotation attribute", "" ]'

JavaScript Example POST:

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