<?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_answer_land_sell_aproved</id>
	<title>Api session event answer land sell aproved - 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_answer_land_sell_aproved"/>
	<link rel="alternate" type="text/html" href="https://support.tygron.com/w/index.php?title=Api_session_event_answer_land_sell_aproved&amp;action=history"/>
	<updated>2026-06-05T22:56:28Z</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_answer_land_sell_aproved&amp;diff=82027&amp;oldid=prev</id>
		<title>Frank@tygron.nl: Created page with &quot;API Endpoint: api/session/event/answer/land_sell_aproved/  Description: Buying Stakeholder has accepted to buy the specified land for a given price per square meter from selling Stakeholder  {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(STAKEHOLDER Integer ID) |Buying Stakeholder ID | |- |1 |REQUIRED |(STAKEHOLDER Integer ID) |Selling Stakeholder ID | |- |2 |REQUIRED |(MultiPolygon with crs: EPSG:3857) |#Api Model Mult...&quot;</title>
		<link rel="alternate" type="text/html" href="https://support.tygron.com/w/index.php?title=Api_session_event_answer_land_sell_aproved&amp;diff=82027&amp;oldid=prev"/>
		<updated>2026-06-01T09:25:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;API Endpoint: api/session/event/answer/land_sell_aproved/  Description: Buying &lt;a href=&quot;/wiki/Stakeholder&quot; title=&quot;Stakeholder&quot;&gt;Stakeholder&lt;/a&gt; has accepted to buy the specified land for a given price per square meter from selling &lt;a href=&quot;/wiki/Stakeholder&quot; title=&quot;Stakeholder&quot;&gt;Stakeholder&lt;/a&gt;  {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(STAKEHOLDER Integer ID) |Buying &lt;a href=&quot;/wiki/Stakeholder&quot; title=&quot;Stakeholder&quot;&gt;Stakeholder&lt;/a&gt; ID | |- |1 |REQUIRED |(STAKEHOLDER Integer ID) |Selling &lt;a href=&quot;/wiki/Stakeholder&quot; title=&quot;Stakeholder&quot;&gt;Stakeholder&lt;/a&gt; ID | |- |2 |REQUIRED |(MultiPolygon with crs: EPSG:3857) |#Api Model Mult...&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/answer/land_sell_aproved/&lt;br /&gt;
&lt;br /&gt;
Description: Buying [[Stakeholder]] has accepted to buy the specified land for a given price per square meter from selling [[Stakeholder]]&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;
|(STAKEHOLDER Integer ID)&lt;br /&gt;
|Buying [[Stakeholder]] ID&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(STAKEHOLDER Integer ID)&lt;br /&gt;
|Selling [[Stakeholder]] ID&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(MultiPolygon with crs: EPSG:3857)&lt;br /&gt;
|[[#Api Model MultiPolygon|MultiPolygon]] describing the land contour&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|REQUIRED&lt;br /&gt;
|(Floating point number)&lt;br /&gt;
|Price per square meter&lt;br /&gt;
|&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;
|204&lt;br /&gt;
|No Content&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/answer/land_sell_aproved/?crs=3857&amp;#039; -H &amp;#039;Content-Type: application/json&amp;#039; -H &amp;#039;Authorization: Bearer API_TOKEN&amp;#039; -d &amp;#039;&lt;br /&gt;
[ 1, 1, {&lt;br /&gt;
 &amp;quot;type&amp;quot; : &amp;quot;MultiPolygon&amp;quot;,&lt;br /&gt;
 &amp;quot;coordinates&amp;quot; : [ [ [ [ 658636.762, 6799451.896 ], [ 658636.762, 6799461.896 ], [ 658646.762, 6799461.896 ], [ 658646.762, 6799451.896 ], [ 658636.762, 6799451.896 ] ] ] ]&lt;br /&gt;
}, 16 ]&lt;br /&gt;
&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Curl example multi item 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/answer/land_sell_aproved/?crs=3857&amp;#039; -H &amp;#039;Content-Type: application/json&amp;#039; -H &amp;#039;Authorization: Bearer API_TOKEN&amp;#039; -d &amp;#039;&lt;br /&gt;
[ 1, 1, {&lt;br /&gt;
 &amp;quot;type&amp;quot; : &amp;quot;MultiPolygon&amp;quot;,&lt;br /&gt;
 &amp;quot;coordinates&amp;quot; : [ [ [ [ 658636.762, 6799451.896 ], [ 658636.762, 6799461.896 ], [ 658646.762, 6799461.896 ], [ 658646.762, 6799451.896 ], [ 658636.762, 6799451.896 ] ] ] ]&lt;br /&gt;
}, 74 ]&lt;br /&gt;
&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, 1, { &amp;quot;type&amp;quot; : &amp;quot;MultiPolygon&amp;quot;, &amp;quot;coordinates&amp;quot; : [ [ [ [ 658636.762, 6799451.896 ], [ 658636.762, 6799461.896 ], [ 658646.762, 6799461.896 ], [ 658646.762, 6799451.896 ], [ 658636.762, 6799451.896 ] ] ] ]}, 16 ]&amp;#039;&lt;br /&gt;
};&lt;br /&gt;
fetch(&amp;quot;https://engine.tygron.com/api/session/event/answer/land_sell_aproved/?crs=3857&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 answer]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API]]&lt;/div&gt;</summary>
		<author><name>Frank@tygron.nl</name></author>
	</entry>
</feed>