Remove transports
General Description
The remove-transports endpoint allows you to delete one or more transports from the system, based on their unique identifiers (transportUId). This action is irreversible and requires appropriate access rights for the targeted transports.
It is subject to the restrictions described in Rate Limit
⚠️ All requests to this endpoint must include the
api-version=2.0parameter in the URL.
URL:POST https://api.trackgps.ro/api/eTransport/remove-transports?api-version=2.0
Request Parameters
Requests to this endpoint must use the POST method and include the following parameters:
-
Query parameter:
api-version(string, required) – The API version. Recommended value:2.0
-
Body (JSON):
{
"transportsUids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}| Parameter | Type | Required | Description |
|---|---|---|---|
| transportsUids | array | Yes | List of unique identifiers (GUID) of the transports to be deleted. |
Response Structure
{
"payload": true,
"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"failureReasons": [
{
"errorCode": "string",
"errorParameters": [
"string"
]
}
],
"isSuccess": true
}Property Descriptions
| Property | Type | Description |
|---|---|---|
| payload | boolean | The result of the delete operation (true if successful). |
| correlationId | string | Unique identifier for the request, useful for traceability. |
| failureReasons | array | List of errors (if any), each with a code and parameters. |
| isSuccess | boolean | Indicates if the request was processed successfully (true or false). |
Error Responses
| HTTP Code | Description |
|---|---|
| 400 | Missing, invalid, or incorrectly formatted parameters. |
| 401 | Unauthenticated user or insufficient permissions. |
| 429 | Rate limit exceeded for the user. |