<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://support.tygron.com/w/index.php?action=history&amp;feed=atom&amp;title=Api_session_event_logic_measurement_item_add</id>
	<title>Api session event logic measurement item add - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://support.tygron.com/w/index.php?action=history&amp;feed=atom&amp;title=Api_session_event_logic_measurement_item_add"/>
	<link rel="alternate" type="text/html" href="https://support.tygron.com/w/index.php?title=Api_session_event_logic_measurement_item_add&amp;action=history"/>
	<updated>2026-06-06T01:04:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://support.tygron.com/w/index.php?title=Api_session_event_logic_measurement_item_add&amp;diff=82063&amp;oldid=prev</id>
		<title>Frank@tygron.nl: Created page with &quot;API Endpoint: api/session/event/logic/measurement_item_add/  Description: Add a ItemMeasurement for an Overlay.  {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(OVERLAY Integer ID) |Overlay ID | |- |1 |REQUIRED |(Enumeration) |Maplink ID |ACTION_LOGS, ACTION_MENUS, ADDRESSES, AREAS, ATTRIBUTE_ACTIONS, BUILDINGS, CHAT_CHANNELS, CHAT_MESSAGES, CINEMATIC_DATAS, CLIENT_WORDS, COSTS, CUSTOM_GEOMETRIES, DEFAULT_WORDS, ERROR_...&quot;</title>
		<link rel="alternate" type="text/html" href="https://support.tygron.com/w/index.php?title=Api_session_event_logic_measurement_item_add&amp;diff=82063&amp;oldid=prev"/>
		<updated>2026-06-01T09:25:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;API Endpoint: api/session/event/logic/measurement_item_add/  Description: Add a &lt;a href=&quot;/wiki/Item&quot; title=&quot;Item&quot;&gt;Item&lt;/a&gt;&lt;a href=&quot;/wiki/Measurement&quot; title=&quot;Measurement&quot;&gt;Measurement&lt;/a&gt; for an &lt;a href=&quot;/wiki/Overlay&quot; title=&quot;Overlay&quot;&gt;Overlay&lt;/a&gt;.  {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(OVERLAY Integer ID) |&lt;a href=&quot;/wiki/Overlay&quot; title=&quot;Overlay&quot;&gt;Overlay&lt;/a&gt; ID | |- |1 |REQUIRED |(Enumeration) |&lt;a href=&quot;/wiki/Maplink&quot; title=&quot;Maplink&quot;&gt;Maplink&lt;/a&gt; ID |ACTION_LOGS, ACTION_MENUS, ADDRESSES, AREAS, ATTRIBUTE_ACTIONS, BUILDINGS, CHAT_CHANNELS, CHAT_MESSAGES, CINEMATIC_DATAS, CLIENT_WORDS, COSTS, CUSTOM_GEOMETRIES, DEFAULT_WORDS, ERROR_...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;API Endpoint: api/session/event/logic/measurement_item_add/&lt;br /&gt;
&lt;br /&gt;
Description: Add a [[Item]][[Measurement]] for an [[Overlay]].&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
!Name&lt;br /&gt;
!Importance&lt;br /&gt;
!Type&lt;br /&gt;
!Description&lt;br /&gt;
!Values&lt;br /&gt;
|-&lt;br /&gt;
|0&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(OVERLAY Integer ID)&lt;br /&gt;
|[[Overlay]] ID&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(Enumeration)&lt;br /&gt;
|[[Maplink]] ID&lt;br /&gt;
|ACTION_LOGS, ACTION_MENUS, ADDRESSES, AREAS, ATTRIBUTE_ACTIONS, BUILDINGS, CHAT_CHANNELS, CHAT_MESSAGES, CINEMATIC_DATAS, CLIENT_WORDS, COSTS, CUSTOM_GEOMETRIES, DEFAULT_WORDS, ERROR_LOGS, EVENT_BUNDLES, EXCEL_SHEETS, FUNCTION_OVERRIDES, FUNCTIONS, GEO_LINKS, GEO_OPTIONS, GEO_PLUGINS, GEO_TIFFS, GLOBALS, HEIGHTS, INCOMES, INDICATORS, LEVEES, MEASUREMENTS, MEASURES, MODEL_DATAS, MODEL_SETS, MONEY_TRANSFERS, NEIGHBORHOODS, NET_CLUSTERS, NET_FUNCTIONS, NET_LINES, NET_LOADS, NET_NODES, NET_SETTINGS, NEURAL_NETWORKS, OVERLAYS, PANELS, PARAMETRIC_DESIGNS, PARAMETRIC_EXAMPLES, PARTICLE_EMITTERS, PLOTS, POPUPS, PROGRESS, PROJECT_ASSETS, RECORDINGS, SCENARIOS, SERVER_WORDS, SETTINGS, SOUNDS, SOURCES, SPECIAL_EFFECTS, SPECIAL_OPTIONS, STAKEHOLDERS, TERRAIN_TYPE_OVERRIDES, TERRAIN_TYPES, TERRAINS, TEXTURES, TIMES, TRIGGERS, UNIT_DATA_OVERRIDES, UNIT_DATAS, UPGRADE_TYPES, WATER_VALUES, WEATHERS, ZIP_CODES  or  ZONES&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(Integer number)&lt;br /&gt;
|[[Item]] ID&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(String)&lt;br /&gt;
|Identifying Key&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(String)&lt;br /&gt;
|Name&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(true, false)&lt;br /&gt;
|Save [[Measurement]]&lt;br /&gt;
|true  or  false&lt;br /&gt;
|}&lt;br /&gt;
===Response Codes===&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
!Response Code:&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|200&lt;br /&gt;
|Integer (Measurement ID)&lt;br /&gt;
|-&lt;br /&gt;
|300-600&lt;br /&gt;
|Codes Overview&lt;br /&gt;
|}&lt;br /&gt;
===Example POST===&lt;br /&gt;
Curl example POST:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; copy&amp;gt;curl &amp;#039;https://engine.tygron.com/api/session/event/logic/measurement_item_add/&amp;#039; -H &amp;#039;Content-Type: application/json&amp;#039; -H &amp;#039;Authorization: Bearer API_TOKEN&amp;#039; -d &amp;#039;[ 1, &amp;quot;SETTINGS&amp;quot;, 1, &amp;quot;Identifying Key&amp;quot;, &amp;quot;Item measurement&amp;quot;, true ]&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
JavaScript example POST:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; copy&amp;gt;var options = {&lt;br /&gt;
 method: &amp;quot;POST&amp;quot;,&lt;br /&gt;
 headers: { &amp;quot;Content-Type&amp;quot;: &amp;quot;application/json&amp;quot;, &amp;quot;Authorization&amp;quot;: &amp;quot;Bearer API_TOKEN&amp;quot; },&lt;br /&gt;
 body: &amp;#039;[ 1, &amp;quot;SETTINGS&amp;quot;, 1, &amp;quot;Identifying Key&amp;quot;, &amp;quot;Item measurement&amp;quot;, true ]&amp;#039;&lt;br /&gt;
};&lt;br /&gt;
fetch(&amp;quot;https://engine.tygron.com/api/session/event/logic/measurement_item_add/&amp;quot;, options)&lt;br /&gt;
 .then(response =&amp;gt; response.text())&lt;br /&gt;
 .then(result =&amp;gt; console.log(result))&lt;br /&gt;
 .catch(error =&amp;gt; console.log(&amp;#039;error&amp;#039;, error));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{article end|seealso=*[[Api session event logic]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API]]&lt;/div&gt;</summary>
		<author><name>Frank@tygron.nl</name></author>
	</entry>
</feed>