Skip to main content

Get a zone by ID

GET 

/zones/:zoneId

The Get Zone request allows you to retrieve information about a specific zone of the current map in ANSCER ROBOT. This request takes in the zone's unique ID as a parameter, and returns a JSON object containing information about the zone.

Request

Path Parameters

    zoneId stringrequired

    The ID of the zone to retrieve, update or delete

Responses

Zone details

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...