Delete Specific Route/Schedule API
Require Authentication
This API is used to delete specific route/schedule for the company based on combination of deviceID and token.
When deleting Route/Schedule, it will also delete all related route/schedule data.
URL
api/routes/delete/:maintenanceScheduleID
Required parameter (in URL)
- :maintenanceScheduleID «contains maintenanceScheduleID that will be deleted. It must be put in the URL, e.g: api/routes/delete/2»
Required parameter (POST)
- deviceID
- token
Optional parameter
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "bb602ab13b8090268cd6e3bb9dfa39e2" }
Possible return HTTP status code
- 200
- 400
- 401
- 404
- 405
Return message
{ "status": "success", "message": [ "Route Schedule \"One time Schedule\" and its related data have been deleted." ] }