v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

Create a new group

post/v1/groups

Headers

X-Time-Zonestring

Specify the timezone for formatting the timestamps.

X-Metric-Unitsboolean

Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units

X-User-Idinteger

Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.

Request body

namestring required

Specify the name of the group that you are creating.

parent_idinteger

Specify the ID of the new group's parent group.

Response

200

Example response

{
  "group": {
    "id": 1,
    "name": "East Coast",
    "company_id": 75,
    "user": {
      "id": 158,
      "first_name": "Addison",
      "last_name": "Hahn",
      "email": "d77d64aa04d1@keeptruckin.com",
      "status": "active",
      "role": "admin"
    }
  }
}