Delete a waypoint by ID
DELETE/waypoints/:waypointId
The Delete Waypoint request allows you to remove a waypoint from the Map. This request takes in the waypoint's unique ID as a parameter, and will permanently delete the waypoint.
However, it's important to exercise caution when using this request, as it will permanently delete the waypoint, the Missions in which this Waypoint was used will be disabled. User can't be able to Initiate that particular Mission. Needs to update the Mission Tasks, in which this waypoint was used.
Request
Path Parameters
The ID of the waypoint to retrieve, update or delete
Responses
- 200
- 401
- 403
- 404
- 500
Waypoint deleted
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 3 characters and <= 50 characters
Possible values: [normal, special, charging, home]
coordinate object
position objectrequired
orientation objectrequired
map object
Possible values: >= 3 characters and <= 50 characters
createdBy object
The user who created this waypoint
updatedBy object
The user who last updated this waypoint
The date and time this waypoint was created
The date and time this waypoint was last updated
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"category": "normal",
"dockMarker": 0,
"coordinate": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
}
},
"map": {
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"properties": {},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.492Z",
"updatedAt": "2024-12-03T13:26:27.492Z"
}
Unauthorized.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Authentication token not provided."
}
{
"message": "Authentication token not provided."
}
Forbidden.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Access to this resource is forbidden."
}
{
"message": "Access to this resource is forbidden."
}
Resource not found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Resource not found."
}
{
"message": "Resource not found."
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Internal Server Error. Please try again later."
}
{
"message": "Internal Server Error. Please try again later."
}