3 api v1 intervention put_de
mpeltriaux edited this page 2023-02-23 10:53:53 +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

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/<uuid>

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 GEÄNDERT",
        "responsible": {
            "registration_office": "2143",
            "registration_file_number": "XY.12/ssd",
            "conservation_office": "25562",
            "conservation_file_number": "RTD-123.XA.5664",
            "handler": {
                "type": "24532",
                "detail": "Firma Mustermann234"
            }
        },
        "legal": {
            "registration_date": null,
            "binding_date": null,
            "process_type": null,
            "laws": [
                "456"
            ]
        }
    }
}
    

Beispiel Response

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