Skip to main content

Toggle Active status of a zone by ID

PUT 

/zones/toggleActive/:zoneId

The Toggle Active Zone request allows you to toggle the isActive property of a zone. This request takes in the zone's unique ID as a parameter, and will toggle the isActive property of the zone.

Setting the isActive property to false will disable the zone in that map and Robot won't consider it for navigation purpose.

Request

Path Parameters

    zoneId stringrequired

    The ID of the zone to toggle the Active status in the map.

Responses

Zone updated

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