data-views-v2
Upsert a data view
Spaces method and path for this operation:
<div><span class="operation-verb put">put</span> <span class="operation-path">/s/{space_id}/api/data_views/v2/{id}</span></div>Refer to Spaces for more information.
Creates the data view with the ID in the path, or replaces its definition if it already exists. Returns 201 when the request creates a data view and 200 when it replaces one. A replacement removes any optional property you omit, such as time_field.<br/><br/>[Required authorization] Route required privileges: indexPatterns:manage.
put/api/data_views/v2/{id}
Request
- Base URLhttps://localhost:5601
- URLhttps://localhost:5601/api/data_views/v2/{id}
- Auth
- API key in header Authorization
- or HTTP basic
Path parameters
idstring required
The ID of the data view to create or update.
Headers
kbn-xsrfstring required
Example:true
A required header to protect against CSRF attacks
Request body
Response
updated