Mileage - Delete route

API Url

Delete one route. The API will verify if it's allowed to delete routes for other employees.

DELETE
http://localhost:16010/ProMarkREST/rest/Mileage/routes/{route_id}

Permissions: user

Path parameters

FieldTypeDescription
route_IdString

Mileage route unique identifier.

Success 200

FieldTypeDescription
  errorCodeNumber

Error Code

  errorMessageString

Message description of the error.

Success example:

HTTP/1.1 200 OK
{
"response": {
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

HTTP/1.1 200 OK
{
"response": {
"errorCode": 34,
"errorMessage": "The route does not exist"
}
}