# Set the default data view **POST /api/data_views/default** **Spaces method and path for this operation:**
post /s/{space_id}/api/data_views/default
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information. Set the default data view for the current Kibana space. The default data view is used as a fallback when no specific data view is selected. ## Servers - https://localhost:5601: https://localhost:5601 () ## Authentication methods - Api key auth - Basic auth ## Parameters ### Headers - **kbn-xsrf** (string) Cross-site request forgery protection ### Body: application/json (object) - **data_view_id** (string | null) The data view identifier. NOTE: The API does not validate whether it is a valid identifier. Use `null` to unset the default data view. - **force** (boolean) Update an existing default data view identifier. ## Responses ### 200 Indicates a successful call. #### Body: application/json (object) - **acknowledged** (boolean) ### 400 Bad request #### Body: application/json (object) - **error** (string) - **message** (string) - **statusCode** (number) [Powered by Bump.sh](https://bump.sh)