# Create or update an ES|QL view **PUT /_query/view/{name}** ## Required authorization * Index privileges: `create_view` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **name** (string) The view name to create or update. ### Body: application/json (object) - **query** (string) The ES|QL query string from which to create a view. ## Responses ### 200 #### Body: application/json (object) - **acknowledged** (boolean) For a successful response, this value is always true. On failure, an exception is returned instead. [Powered by Bump.sh](https://bump.sh)