---
title: "Update an account group for a company"
method: PUT
path: "/account-groups/{accountCategoryId}"
tags: ["Accounts"]
deprecated: true
---

# Update an account group for a company

`PUT /account-groups/{accountCategoryId}`

> **Deprecated.**

## Path parameters

- `accountCategoryId` string, required

## Request body

- AccountGroupCreationRequest
  - `name` string — Description of the account group
  - `typeKey` 'entertainment' | 'equipment_and_hardware' | 'marketing_and_advertising' | 'meals_and_drinks' | 'office_expenses' | 'phone_and_internet' | 'services_and_consultancy' | 'software' | 'supplies' | 'travel' | 'other' | 'no_suitable_category' — Type key of the account group
  - `hidden` boolean — Is the account hidden/archived for the user

## Response `200`

An account group has been updated

- AccountGroupResponse
  - `id` string, required — The unique UUID identifier of the account group
  - `name` string, required — Description of the account group
  - `typeKey` 'entertainment' | 'equipment_and_hardware' | 'marketing_and_advertising' | 'meals_and_drinks' | 'office_expenses' | 'phone_and_internet' | 'services_and_consultancy' | 'software' | 'supplies' | 'travel' | 'other' | 'no_suitable_category', required — Type key of the account group
  - `hidden` boolean, required — Is the account hidden/archived for the user

## Other responses

- `400` — validation error
- `401` — request unauthorized
- `403` — Request forbidden; user has insufficient rights to a resource.
- `404` — An account group does not exist or does not match the company
- `500` — Something went wrong. Please contact the administrator if problems persist.

---

[API](https://skmtc.net/pleo/apis/gjoll-api.md) · [All operations](https://skmtc.net/pleo/apis/gjoll-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pleo/gjoll-api/versions/c70cd21dc330/schema)
