Adds a saved vehicle to a vehicle group of the application's organization.
Input. groupId is the 24-character id of a vehicle group from List vehicle groups; vehicleId is the numeric id of a saved vehicle from List vehicles.
Response. 204 No Content with an empty body.
Notes. The call is idempotent: adding a vehicle that is already in the group changes nothing and also answers 204. An unsaved vehicle answers 400; save it first. A 404 means the group or the vehicle does not exist or is not visible to the access token, never that the vehicle was or was not a member.
Side effects. The updated group is sent to the Cores that use it, so alerts that use the group start matching the vehicle. Undo with Remove a vehicle from a vehicle group.
Request examples
PUT /v3/vehicle-api/groups/6512bd43d9caa6e02c990b0a/vehicles/1093527491036451
Required scope: write:vehicles
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
204The vehicle is in the group, whether it was added now or was already a member.
400groupId is not a 24-character id, vehicleId is not a positive integer, or the vehicle is not saved.
404Vehicle or vehicle group not found in this organization.
409The vehicle is private and the group is not, or the vehicle is hidden from users of an alert that uses the group.
429Too many requests. Try again later.
500Internal server error.
