UpdateMaterializedView

Updated at:
Copy as MD

Updates a materialized view.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

PUT /materializedviews/{name} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

name

string

No

The name of the materialized view to update.

Request parameters

Parameter

Type

Required

Description

Example

project

string

No

The name of the project that contains the materialized view.

body

object

No

The request body.

originalSql

string

No

The new SQL query for the materialized view. Updating the query rebuilds the view.

aggIntervalMins

integer

No

The refresh interval of the materialized view, in minutes.

ttl

integer

No

The data retention period (TTL) of the materialized view, in days.

enable

boolean

No

Specifies whether to automatically refresh the materialized view.

Response elements

Element

Type

Description

Example

None defined.

Examples

Success response

JSON format

{}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.