---
title: "Reorder views"
method: POST
path: "/views/reorder"
tags: ["Views"]
---

# Reorder views

`POST /views/reorder`

## Request

- Base URL: `https://public.escape.tech/v3`
- URL: `https://public.escape.tech/v3/views/reorder`
- Auth: API key in header `X-ESCAPE-API-KEY`

Reorder the saved views of a target. The order is the list of view IDs in their new order. Views omitted from the list keep their relative order after the provided ones.

## Request body

- object
  - `target` 'ASSETS' | 'EVENTS' | 'INTEGRATIONS' | 'ISSUES' | 'LOCATIONS' | 'PROFILES' | 'SCANS' | 'TARGETS', required: The resource the views apply to
  - `order` string[], required: The view IDs in their new order

## Response `200`

OK

- object
  - `success` boolean, required: Whether the views were reordered

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/escape/apis/escape-public-api.md) - [All operations](https://skmtc.dev/escape/apis/escape-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/escape/apis/escape-public-api/revisions/2eab35df40c7?raw)
