# Reorder transaction categories

Set the order categories are listed in everywhere (pickers, the category ring, the manager). Send `identifiers` in the order they should appear; any category left out keeps its relative place after them. An unknown or repeated identifier is refused. Returns the categories in their new order. 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/category-order`

## Request body

Content type: `application/json`.

```json
{
  "identifiers": [
    "string"
  ]
}
```

## 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,
      "tags": [
        "string"
      ],
      "uses": 1
    }
  ]
}
```

### 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"
}
```
