---
title: "POST /UpdateView"
method: POST
path: "/UpdateView"
---

# POST /UpdateView

`POST /UpdateView`

Modifies some of the details of a view. You can change the filter string and the list of included properties. You can't change the name of the view.

## Request body

- object
  - `ViewArn` string, required — The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view that you want to modify.
  - `IncludedProperties` IncludedProperty[] — <p>Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.</p> <p>The default is an empty list, with no optional fields included in the results.</p>
    - `Name` string, required — <p>The name of the property that is included in this view.</p> <p>You can specify the following property names for this field:</p> <ul> <li> <p> <code>tags</code> </p> </li> </ul>
  - `Filters` object — A search filter defines which resources can be part of a search query result set.
    - `FilterString` string — The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a <a>Search</a> operation. For more details, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html">Search query syntax</a>.

## Response `200`

Success

- UpdateViewOutput
  - `View` object — Details about the view that you changed with this operation.
    - `ViewArn` string — The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view.
    - `ViewName` string — The name of the view.
    - `Owner` string — The Amazon Web Services account that owns this view.
    - `LastUpdatedAt` string, date-time — The date and time when this view was last modified.
    - `Scope` string — <p>An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.</p> <p>If not specified, the value defaults to the Amazon Web Services account used to call this operation.</p>
    - `IncludedProperties` IncludedProperty[] — A structure that contains additional information about the view.
      - `Name` string, required — <p>The name of the property that is included in this view.</p> <p>You can specify the following property names for this field:</p> <ul> <li> <p> <code>tags</code> </p> </li> </ul>
    - `Filters` object — An array of <a>SearchFilter</a> objects that specify which resources can be included in the results of queries made using this view.
      - `FilterString` string, required — The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a <a>Search</a> operation. For more details, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html">Search query syntax</a>.

## Other responses

- `480` — InternalServerException
- `481` — ValidationException
- `482` — ServiceQuotaExceededException
- `483` — UnauthorizedException
- `484` — ThrottlingException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/resource-explorer-2.md) · [All operations](https://skmtc.net/aws/apis/resource-explorer-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/resource-explorer-2/versions/d0cbc402825f/schema)
