---
title: "Update Many Views"
method: PUT
path: "/api/v2/views/update_many"
tags: ["Views"]
---

# Update Many Views

`PUT /api/v2/views/update_many`

#### Allowed For

* Agents

#### Request Parameters

The PUT request expects a `views` object that lists the views to update.

Each view may have the following properties:

| Name     | Mandatory | Description
| -------- | --------- | -----------
| id       | yes       | The ID of the view to update
| position | no        | The new position of the view
| active   | no        | The active status of the view (true or false)

#### Example Request Body

```js
{
  "views": [
    {"id": 25, "position": 3},
    {"id": 23, "position": 5},
    {"id": 27, "position": 9},
    {"id": 22, "position": 7}
  ]
}
```

## Response `200`

Success response

- ViewsResponse
  - `count` integer
  - `next_page` string, nullable
  - `previous_page` string, nullable
  - `views` ViewObject[]
    - `active` boolean — Whether the view is active
    - `conditions` object — Describes how the view is constructed. See [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference)
    - `created_at` string, date-time — The time the view was created
    - `default` boolean — If true, the view is a default view
    - `description` string — The description of the view
    - `execution` object — Describes how the view should be executed. See [Execution](#execution)
    - `id` integer — Automatically assigned when created
    - `position` integer — The position of the view
    - `restriction` object — Who may access this account. Is null when everyone in the account can access it
    - `title` string — The title of the view
    - `updated_at` string, date-time — The time the view was last updated

---

[API](https://skmtc.net/botbrains-io/apis/support-api.md) · [All operations](https://skmtc.net/botbrains-io/apis/support-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/botbrains-io/support-api/versions/d53eac07ba68/schema)
