Skip to main content
Omnitracs Knowledge Base

Add Vehicle To Group

addVehicleToGroup


(To Be Supported in Release 1.5 )
This method is not implemented and will throw an exception:  MMS Grouping service currently does not support the VehicleId implementations.

Adds a vehicle to a group given the identifier of the vehicle and the name of the group.

addVehicleToGroupResponse addVehicleToGroup(AddVehicleToGroupRequest request)

Elements in the AddVehicleToGroupRequest:

  • vehicleId: The ID of the vehicle to be added to the group.
  • groupName: The name of the group to which this vehicle will be added.
     

Sample XML Request

Only the SOAP body is shown. To see a sample SOAP Envelope and Header, click here

<SOAP-ENV:Body>
  <ns2:addVehicleToGroupRequest xmlns:ns2="http://www.qualcomm.com/qgs">
    <ns2:vehicleId>15</ns2:vehicleId>
    <ns2:groupName>A Test Group</ns2:groupName>
  </ns2:addVehicleToGroupRequest>
</SOAP-ENV:Body>


Sample XML Response

An empty response means success. If there was an error, an exception would have been thrown.
 

Exceptions

002: Required field not specified.
005: Internal error: Call to the Add Vehicle to Group API failed.
009: Group was not found.
011: Vehicle was not found.
012: Vehicle is already a member of the group.
014: Vehicle is not Enabled for MMS.

 

  • Was this article helpful?