Vehicle
Submit command for vehicle
This endpoint creates a command request that is asynchronously executed.
POST
/
v1.0.0
/
vehicles
/
{vehicleId}
/
commands
/
{command}
Authorizations
X-API-KEY
string
headerrequiredApiKey used for authorization and authentication
Path Parameters
vehicleId
string
requiredVehicle ID
command
enum<string>
requiredName of the command to execute
Available options:
CHARGING_START
, CHARGING_STOP
Response
200 - application/json
createdAt
string
requiredThe timestamp when command is created.
id
string
requiredThe ID of the command.
state
enum<string>
requiredThe state of the command.
PENDING
- Command is waiting to be executed.FAILED
- Execution of command has failed.EXECUTED
- Command has been executed successfully.
Available options:
PENDING
, EXECUTED
, FAILED
type
enum<string>
requiredThe name of the command type to execute.
Available options:
CHARGING_START
, CHARGING_STOP
userId
string
requiredThe ID of the user.
deviceId
string
requiredThe ID of the vehicle.