# Save a transaction category

Create or update a workspace category. Use a stable lowercase identifier; renaming the display name preserves that identity. Guidance and keywords explain how Neo should classify expenses and income. active=false archives a category without erasing prior classifications. Changes support undo. Takes the brokerage's books: an owner or admin, or a seat holding an accounting grant (`get_accounting_me_access`); anyone else is refused with 403.

Access class: `workspace:books`.

## Endpoint

`PUT /v1/accounting/categories/{identifier}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| identifier | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "active": true,
  "color": "string",
  "guidance": "string",
  "icon": "string",
  "identifier": "string",
  "keywords": [
    "string"
  ],
  "kind": "string",
  "name": "string",
  "position": 1,
  "tags": [
    "string"
  ],
  "uses": 1
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "active": true,
    "color": "string",
    "guidance": "string",
    "icon": "string",
    "identifier": "string",
    "keywords": [
      "string"
    ],
    "kind": "string",
    "name": "string",
    "position": 1.5,
    "tags": [
      "string"
    ],
    "uses": 1.5
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
