4 api v1 intervention post_de
mpeltriaux edited this page 2025-01-21 13:42:51 +01:00

Spezifikation

Eingriff

Codes

Folgende Attribute referenzieren die Id eines oKey Eintrags für Eingriffe:

  1. registration_office
  2. conservation_office
  3. process_type
  4. laws Einträge

POST

Mit POST kann ein neuer Eingriff angelegt werden. Die Eingriffsdaten werden im Request body als application/json gesendet. War der Request erfolgreich, erhält der Sender die id des neu angelegten Eintrags.

/api/v1/intervention

Beispiel Body

{
    "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",
        "responsible": {
            "registration_office": "1958913",
            "registration_file_number": "XYZ.665-123",
            "conservation_office": "1944331",
            "conservation_file_number": "ABC.123-5664",
            "handler": {
                "type": "1956138",
                "detail": "Firma Mustermann234"
            }
        },
        "legal": {
            "registration_date": "2021-12-27",
            "binding_date": "2022-01-21",
            "process_type": "1944912",
            "laws": [
                "1935994"
            ]
        }
    }
}
    
    

Beispiel Response

{
    "id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f"
}