Bulk Remove Vehicles
DELETE/vehicles
Removes a list of vehicles for a user (filtered by number plate).
If no number plates are sent for filtering, it removes ALL vehicles for the user.
You may use the `x-batch` header if you do not want to wait for completion.
⚠️ WARNING: If removing and re-inserting your vehicles in bulk using `x-batch`, please wait 10s minimum between deletion (`DELETE /vehicles`) and re-insertion (`POST /vehicles`), to allow the first call to complete.
Request
Query Parameters
Comma-separated list of number plates to delete (ie 0388VCP,8023GLV
), without spaces. Leave empty to delete ALL vehicles.
Header Parameters
Authentication header obtained from POST /authenticate
that identifies the user making this call.
Authentication header obtained from POST /authenticate
that identifies the client making this call.
Authentication header obtained from POST /authenticate
that identifies the user making this call.
A header that specifies if the endpoint should return 202 Accepted
immediately, instead of waiting for completion.
Responses
- 200
- 202
- 400
- 401
- 500
OK
Response Headers
x-deleted integer
Number of deleted vehicles
Accepted
Bad request (ie. Invalid plate
for vehicle index [0])
Unauthorized (ie. Incorrect or missing x-access-token
)
Internal server Error (ie. Database down)