Skip to main content

Update a zone by ID

PUT 

/zones/:zoneId

The Update Zone request allows you to update the information of an existing zone for current Active Map in ANSCER ANYA. This request takes in the zone's unique ID as a parameter, as well as any updated zone information in the form of a JSON object. This request can be used to update a zone's name, and category, and/or geometry coordinates.

Request

Path Parameters

    zoneId stringrequired

    The ID of the zone to retrieve, update or delete

Body

required
    name stringrequired

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

    A unique name of the zone

    category zoneTypesrequired

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

    type string

    Possible values: [Feature]

    GeoJSON type of the zone, always Feature

    geometry object required
    oneOf
    type stringrequired

    Possible values: [Point]

    coordinates double[]required
    properties object

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