Send command to sound horn or turn on hazard lights on vehicle
POST/vehicles/commands/:registration
This function requires a specific fitment by Cartrack. You can remotely sound the horn on the vehicle or turn on the hazard lights by sending the commands "HORN", "HAZARD_LIGHTS". A device is installed in your vehicle and reproduces the keyfob signals.
- "HORN": this command turns on the keyfob in the car and uses it to send the horn command.
- "HAZARD_LIGHTS": this command turns on the keyfob in the car and uses it to send the hazard lights command.
Not all vehicles and devices are compatible with this function.
To prevent duplicate commands, the same command cannot be sent to the same vehicle while a previous one is still being processed (up to 30 seconds). In that case the API responds with an HTTP 409 error and a Retry-After header indicating the number of seconds to wait before retrying.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 500
Successful operation
Unauthorized access. Authentication is required.
Access is forbidden. The user does not have permission to access this resource.
The requested resource was not found.
A command of the same type was recently sent to this vehicle and is still being processed. Wait for the number of seconds indicated in the Retry-After header before sending the command again.
Response Headers
The number of seconds to wait before the command can be sent again.
Validation failed for the input parameters.
Internal server error.