Skip to main content

Delete a zone by ID

DELETE 

/zones/:zoneId

The Delete Zone request allows you to remove a zone from the Map. This request takes in the zone's unique ID as a parameter, and will permanently delete the zone.

In another case, you can have an toggleActive zone request that allows you to update the isActive property of a zone. Setting the isActive property to false will disable the zone in that map without deleting it completely.

Request

Path Parameters

    zoneId stringrequired

    The ID of the zone to retrieve, update or delete

Responses

Zone deleted

Schema
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    category zoneTypes

    Possible values: [restricted, warning, blink, buzzer, speed, no-plan]

    isActive boolean

    Default value: true

    type string

    Possible values: [Feature]

    GeoJSON type of the zone, always Feature

    geometry object
    oneOf
    type stringrequired

    Possible values: [Point]

    coordinates double[]required
    map object
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    properties object
    createdBy object

    The user who created this zone

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this zone

    _id string
    name string
    email email
    createdAt date-time

    The date and time this zone was created

    updatedAt date-time

    The date and time this zone was last updated

Loading...