Skip to main content
PUT
/
account-categories
/
{accountCategoryId}
Update an account group for a company
curl --request PUT \
  --url https://openapi.pleo.io/v1/account-categories/{accountCategoryId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "typeKey": "entertainment",
  "hidden": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "typeKey": "entertainment",
  "hidden": true
}

Authorizations

Authorization
string
header
required

Open API Bearer token

Path Parameters

accountCategoryId
string
required

Unique UUID of the account.

Example:

"0f0e000-000d-0d00-000b-00db0d000fae"

Body

application/json
name
string

Description of the account group

typeKey
enum<string>

Type key of the account group

Available options:
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
hidden
boolean

Is the account hidden/archived for the user

Response

An account group has been updated

id
string
required

The unique UUID identifier of the account group

name
string
required

Description of the account group

typeKey
enum<string>
required

Type key of the account group

Available options:
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
hidden
boolean
required

Is the account hidden/archived for the user