diff --git a/api-v1-intervention-put_de.md b/api-v1-intervention-put_de.md new file mode 100644 index 0000000..60def35 --- /dev/null +++ b/api-v1-intervention-put_de.md @@ -0,0 +1,85 @@ +## Spezifikation +### Eingriff +#### Codes +Folgende Attribute referenzieren die `atomId` eines oKey Eintrags für Eingriffe: +1. `registration_office` +2. `conservation_office` +3. `process_type` +4. `laws` Einträge + +#### PUT +Mit `PUT` kann ein bestehender Eingriff bearbeitet werden. Die Eingriffsdaten werden im Request body als `application/json` gesendet. War der Request erfolgreich, erhält der Sender die `id` des überarbeiteten Eintrags. + +`/api/v1/intervention/` + +#### Beispiel Body + +```json +{ + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.593955993652341, + 50.36244809879689 + ], + [ + 7.592582702636717, + 50.36023051515941 + ], + [ + 7.601766586303708, + 50.35823186336356 + ], + [ + 7.603225708007811, + 50.3628587510637 + ], + [ + 7.599148750305174, + 50.362557606415464 + ], + [ + 7.596273422241207, + 50.362612360130036 + ], + [ + 7.593955993652341, + 50.36244809879689 + ] + ] + ] + ], + "properties": { + "title": "Tolles Baugebiet GEÄNDERT", + "responsible": { + "registration_office": "1764986", + "registration_file_number": "XY.12/ssd", + "conservation_office": "710138", + "conservation_file_number": "RTD-123.XA.5664", + "handler": "Eingriffsverursacher geändert" + }, + "legal": { + "registration_date": null, + "binding_date": null, + "process_type": null, + "laws": [ + "710067" + ] + } + } +} + +``` + + + + +#### Beispiel Response +```json +{ + "id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f" +} + +``` \ No newline at end of file