Skip to main content

Create Group

POST 

https://secure.fleetio.com/api/v1/groups

Creates a new Group

Request

Body

    namestringrequired

    Possible values: <= 255 characters

    defaultboolean

    Indicates whether this Group is the default Group.

    parent_idId (integer)

    Possible values: >= 1

    hierarchystring

    Create Group(s) from a pipe delimited hierarchy string. Will start from the end of the string and create the necessary Groups to produce the desired hierarchy.

Responses

OK

Response Headers
    Schema
      idId (integer)required

      Possible values: >= 1

      created_atdate-time

      The date and time at which this record was created.

      Example: 2023-03-14T13:46:27-06:00
      updated_atdate-time

      The date and time at which this record was most recently updated.

      Example: 2023-03-14T13:46:27-06:00
      account_idId (integer)required

      Possible values: >= 1

      namestring

      The name of the Group.

      defaultboolean

      Indicates whether this Group is the default Group.

      ancestrystringnullable

      A pipe delimited list of ancestor Group IDs, starting with the root Group and ending with the immediate parent Group.

      ancestry_namesstringnullablerequired

      A pipe delimited list of ancestor Group names, starting with the root Group and ending with the immediate parent Group.

      watched_group_subscriptions_countintegerrequired

      The count of subscriptions to this Group.

      is_samplebooleanrequired

      Indicates whether this Group is a sample Group.

      unarchived_vehicles_countintegerrequired

      The count of unarchived Vehicles within this Group.

    Authorization: Authorization

    name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
    You can generate a new API key [here](https://secure.fleetio.com/api_keys).
    name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)

    Request Collapse all
    Base URL
    https://secure.fleetio.com/api
    Auth
    Body
    {
      "name": "string",
      "default": true,
      "parent_id": 0,
      "hierarchy": "string"
    }
    
    ResponseClear

    Click the Send API Request button above and see the response here!