v1

latestOpenAPI 3.0.12026-07-141671231.8 MB
Categories

Update a category

This endpoint updates a category.

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

put/api/external/v2/categories/{id}

Path parameters

idstring required

The unique identifier of the category

Request body

labelstring
direction'cash_in' | 'cash_out'

Only applicable for treasury categories

analytical_codestring nullable

Example request

{
  "label": "Alimentaire",
  "analytical_code": "CODE123"
}

Response

Returns the updated category

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

Example response

{
  "id": 42,
  "label": "Alimentaire",
  "created_at": "2023-08-30T10:08:08.146343Z",
  "updated_at": "2023-08-30T10:08:08.146343Z",
  "category_group": {
    "id": 348
  },
  "analytical_code": "CODE123"
}