# Reorder conversation attributes

Sets the order attributes show in, in the inbox's details and in settings. Returns the attributes in their new order.

```http
PATCH https://trydimmi.com/api/v1/conversation-attributes/order
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `attributes:write`.

## Body

- `ids` (string[] | null, required): Every attribute's id in the order to show them; those left out follow.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `data_type` (string, required): What the value is: text, long_text, number, decimal, choice, multiple_choice, boolean, date, datetime, file, contact or company.
  - `description` (string, required): What it means; the AI reads it to decide the value. Empty when not set.
  - `filled_by` (string, required): Who fills it: ai, teammates or both.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `key` (string, required): The attribute's key, as conditions and variables name it: conversation.ai.<key>.
  - `label` (string, required): What the team calls the attribute.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `option_descriptions` (object, required): What some options mean, by option, for the AI to read. Empty when none is described.
  - `options` (string[] | null, required): With choice or multiple_choice, the values it may take. Empty otherwise.
  - `required_to_close` (boolean, required): Whether teammates must fill it before closing a conversation.
  - `status` (string, required): active while it is filled, archived once it stopped.
  - `team_ids` (string[] | null, required): The teams that see it in the inbox. Empty when every team does.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
- `links` (object): Addresses of related pages by name, such as next; left out when there are none.
- `meta` (object, required)
  - `next_cursor` (string | null, required): Send it as cursor to read the next page; null on the last page.
  - `per_page` (integer, required): How many items a page holds at most, such as 25.
  - `prev_cursor` (string | null, required): Send it as cursor to read the page before; null on the first page.
  - `total` (integer): How many items match in all; left out when the list does not count them.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/conversation-attributes/order' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "<string>"
  ]
}'
```

## Example response

```json
{
  "data": [
    {
      "created_at": "2026-11-01T09:30:00Z",
      "data_type": "<string>",
      "description": "<string>",
      "filled_by": "<string>",
      "id": "<string>",
      "key": "<string>",
      "label": "<string>",
      "object": "<string>",
      "option_descriptions": {
        "<key>": "<string>"
      },
      "options": [
        "<string>"
      ],
      "required_to_close": true,
      "status": "<string>",
      "team_ids": [
        "<string>"
      ],
      "updated_at": "2026-11-01T09:30:00Z"
    }
  ],
  "links": {
    "<key>": "<string>"
  },
  "meta": {
    "next_cursor": "<string>",
    "per_page": 123,
    "prev_cursor": "<string>",
    "total": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
