---
title: "Update Group"
method: PATCH
path: "/groups/{id}"
tags: ["Groups"]
---

# Update Group

`PATCH /groups/{id}`

## Request

- Base URL: `https://secure.fleetio.com/api`
- URL: `https://secure.fleetio.com/api/groups/{id}`
- Auth: API key in header `Authorization` and API key in header `Account-Token`
- TypeScript: <https://skmtc.dev/fleetio/apis/fleetio-developer-api/docs/groups/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a Group

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `default` boolean: Indicates whether this Group is the default Group.
  - `parent_id` integer
  - `hierarchy` string: 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.

## Response `204`

OK

## Other responses

- `401`: Request could not be authenticated
- `403`: Insufficient permission to perform this operation
- `404`: The requested resource could not be located
- `422`: Unprocessable Entity
- `500`: Something unexpected happened

---

[API](https://skmtc.dev/fleetio/apis/fleetio-developer-api.md) - [All operations](https://skmtc.dev/fleetio/apis/fleetio-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fleetio/apis/fleetio-developer-api/revisions/49558d744bd7?raw)
