Skip to main content

Update a waypoint by ID

PUT 

/waypoints/:waypointId

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

Request

Path Parameters

    waypointId stringrequired

    The ID of the waypoint to retrieve, update or delete

Query Parameters

    updatePose boolean

    Optional boolean parameter. If set to true, the coordinate of the waypoint will be updated to the current robot pose.

Body

required
    name stringrequired

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

    A unique name of the waypoint

    category waypointTypesrequired

    Possible values: [normal, special, charging, home]

    dockMarker number

    Dock marker number, this will be required if the waypoint type is charging or special.

    properties object

Responses

Waypoint updated

Schema
    _id uuid
    name string

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

    category waypointTypes

    Possible values: [normal, special, charging, home]

    dockMarker number
    coordinate object
    position objectrequired
    x doublerequired
    y doublerequired
    z doublerequired
    orientation objectrequired
    x doublerequired
    y doublerequired
    z doublerequired
    w doublerequired
    map object
    _id uuid
    name string

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

    properties object
    createdBy object

    The user who created this waypoint

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this waypoint

    _id string
    name string
    email email
    createdAt date-time

    The date and time this waypoint was created

    updatedAt date-time

    The date and time this waypoint was last updated

Loading...