Category Groups

Create a category group

Changed on

Create a category group

ℹ️ This endpoint requires the following scope: categories:all

post/api/external/v2/category_groups

Request

  • Base URL
    https://app.pennylane.com
  • URL
    https://app.pennylane.com/api/external/v2/category_groups
  • Auth
    OAuth 2
    Authorization code: https://app.pennylane.com/oauth/authorize
    Token URL: https://app.pennylane.com/oauth/oauth/token scopes: categories:all

Headers

X-Company-Idstring
Example:12345

Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.

Request body

labelstring required
kind'profit_and_loss' | 'treasury' | 'building'

Example request

{
  "label": "Types de depenses / revenus",
  "kind": "profit_and_loss"
}

Response

Returns the created category group

idinteger required
labelstring required
created_atstring date-time required
updated_atstring date-time required

Example response

{
  "id": 989,
  "label": "Types de depenses / revenus",
  "categories": {
    "url": "https://app.pennylane.com/api/external/v2/category_groups/42/categories"
  },
  "created_at": "2023-08-30T10:08:08.146343Z",
  "updated_at": "2023-08-30T10:08:08.146343Z"
}

Changes