# Set the next active task for a vehicle Endpoint: POST /vehicles/{vehicleId}/activeTask Version: 1.0.0 Security: M2X_auth_application ## Path parameters: - `vehicleId` (string, required) The vehicle ID ## Request fields (application/json): - `taskId` (string, required) The task ID to set as active for the vehicle. Must be a task that is assigned to the vehicle and not already complete. - `timestamp` (integer, required) Epoch timestamp (seconds since 1970) of the update - `name` (string,null) The name of the user responsible for this action, if applicable ## Response 200 fields (application/json): - `success` (boolean) Example: true ## Response 400 fields (application/json): - `message` (string) Example: "missing data" ## Response 404 fields (application/json): - `message` (string) Example: "not found"