api.automapa.comv3 - all systems normal

Overwrite permit document

RoadPermit.overwrite

Replaces the entire document identified by id. Alias: update.

POST/v3/RoadPermit/overwriteapi.automapa.com

Body parameters

BodyTypeDescription
idstring REQUIREDDocument id.
enviromentstringEnvironment name (default "uat"). Letters, digits, _, -.
date_startstringValidity start "YYYY-MM-DD".
date_endstringValidity end "YYYY-MM-DD"; must be ≥ date_start.
descriptionstringFree-text description (≤ 255 chars).
document_namestringDocument identifier (default "default").
locationstringLocation description.
permissionsobjectAt least one of tr_tonnage / tr_tonn_axis / tr_height.
tr_tonnageinteger|doubleAllowed tonnage.
tr_tonn_axisinteger|doubleAllowed axle load.
tr_heightinteger|doubleAllowed height.
polyobjectGeoJSON Polygon { type: "Polygon", coordinates: [[[lon,lat], …]] }.
is_valid_after_expiryboolKeep valid after date_end. Default true.

Example request

{
    "id": "60a79ba2",
    "enviroment": "uat",
    "date_start": "2026-05-01",
    "date_end": "2027-01-31",
    "is_valid_after_expiry": false,
    "permissions": {
        "tr_tonnage": 26,
        "tr_tonn_axis": 9
    },
    "poly": {
        "type": "Polygon",
        "coordinates": [
            [
                [
                    20.993,
                    50.0106
                ],
                [
                    20.9945,
                    50.0108
                ],
                [
                    20.9942,
                    50.0116
                ],
                [
                    20.9931,
                    50.0119
                ],
                [
                    20.993,
                    50.0106
                ]
            ]
        ]
    }
}

Example response

{
    "result": {
        "id": "60a79ba2"
    }
}

result fields

result fieldsTypeDescription
idstringId of the overwritten document.