Page:
							api v1 compensation post_de
						
						
					
					
							Pages
							
							
								EGON
							
								Home
							
								Home_en
							
								api v1 compensation delete_de
							
								api v1 compensation get_de
							
								api v1 compensation json properties de
							
								api v1 compensation post_de
							
								api v1 compensation put_de
							
								api v1 deduction delete_de
							
								api v1 deduction get_de
							
								api v1 deduction json properties de
							
								api v1 deduction post_de
							
								api v1 deduction put_de
							
								api v1 ecoaccount delete_de
							
								api v1 ecoaccount get_de
							
								api v1 ecoaccount json properties de
							
								api v1 ecoaccount post_de
							
								api v1 ecoaccount put_de
							
								api v1 ema delete_de
							
								api v1 ema get_de
							
								api v1 ema json properties de
							
								api v1 ema post_de
							
								api v1 ema put_de
							
								api v1 intervention check_de
							
								api v1 intervention delete_de
							
								api v1 intervention get_de
							
								api v1 intervention json properties de
							
								api v1 intervention post_de
							
								api v1 intervention put_de
							
								api v1 share get_de
							
								api v1 share put_de
							
								api_de
							
								custom commands
							
								features
							
								features_de
							
								features_en
							
								generate_report_de
							
								konova codes
							
								recalculate_parcels_de
							
								technical documentation
							
								technical documentation_de
							
						
					 Clone
	
					7 
					
				
						api v1 compensation post_de
						
				
							
							mpeltriaux edited this page 2023-04-14 08:01:38 +02:00 
						
					Table of Contents
Spezifikation
Kompensation
Codes
Folgende Attribute referenzieren die Id eines oKey Eintrags für Kompensationen:
biotopeaction
POST
Mit POST kann eine neue Kompensation angelegt werden. Die Kompensationsdaten werden im Request body als application/json gesendet. War der Request erfolgreich, erhält der Sender die id des neu angelegten Eintrags.
Achtung: Eine Kompensation kann nur angelegt werden, wenn der zugehörige Eingriff bereits existiert und referenziert wird.
/api/v1/compensation
Beispiel Body
{
    "type": "MultiPolygon",
    "coordinates": [
        [
            [
                [
                    7.477097511291501,
                    50.14218444767971
                ],
                [
                    7.479243278503415,
                    50.140479182654374
                ],
                [
                    7.483620643615721,
                    50.14300955409459
                ],
                [
                    7.482976913452146,
                    50.14405466845533
                ],
                [
                    7.481346130371092,
                    50.14416467916495
                ],
                [
                    7.479929924011228,
                    50.143174573669675
                ],
                [
                    7.47808456420898,
                    50.14232196640389
                ],
                [
                    7.477097511291501,
                    50.14218444767971
                ]
            ]
        ]
    ],
    "properties": {
        "title": "Tolle Kompensation",
        "is_cef": false,
        "is_pik": false,
        "is_coherence_keeping": false,
        "intervention": "97d7cce8-83e9-4043-bc76-317caf983a41",
        "before_states": [
            {
                "biotope": "136156",
                "biotope_details": [
                    "138046"
                ],
                "surface": 1000.0
            }
        ],
        "after_states": [
            {
                "biotope": "136204",
                "biotope_details": [],
                "surface": 1000.0
            }
        ],
        "actions": [
            {
                "action_types": [
                    "709297",
                    "709289",
                    "709299"
                ],
                "action_details": [ 
                    "709649", 
                    "709709"
                ],
                "amount": 1000.0,
                "unit": "m²",
                "comment": ""
            }
        ],
        "deadlines": [
            {
                "type": "finished",
                "date": "2022-01-31",
                "comment": ""
            }
        ]
    }
}
    
Beispiel Response
{
    "id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f"
}