Create a vehicle group

Creates a vehicle group in the application's organization, optionally with saved vehicles in it, and returns it.

Input. name is required: 1 to 100 characters once leading and trailing spaces are removed, and different from the name of every other vehicle group the organization created, ignoring case. memberIds is optional: up to 500 numeric ids of saved vehicles from List vehicles, no id twice.

Response. 201 with the group, its memberIds and memberCount.

Notes. A name that is already used answers 409 with code: VEHICLE_GROUP_NAME_EXISTS. A member id that is not a vehicle of the organization, or that the access token may not see, answers 404; an unsaved vehicle answers 400, save it first. In every one of these cases nothing is created. The group is not private: every user of the organization sees it.

Side effects. A group created with vehicles is sent to the Cores of the organization, so alerts that use it can match them. Undo with Delete a vehicle group.

Request examples

POST /v3/vehicle-api/groups

{ "name": "Employees" }

POST /v3/vehicle-api/groups

{ "name": "Employees", "memberIds": [1093527491036451, 1093527491036452] }

Required scope: write:vehicles

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The name of the group and, optionally, the saved vehicles to put in it.

string
required
length between 1 and 100

The name of the group, 1 to 100 characters once leading and trailing spaces are removed. Unique among the vehicle groups of the organization, ignoring case.

memberIds
array of integers, unique
length ≤ 500

Optional numeric ids of saved vehicles to put in the group, at most 500, no id twice.

memberIds
Responses

400

name is missing, empty or longer than 100 characters, memberIds holds more than 500 ids, a duplicate or an id that is not a positive integer, or a member id is an unsaved vehicle.

404

Vehicle not found in this organization.

429

Too many requests. Try again later.

500

Internal server error.

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*