Body
Required
-
data_view_id
string | null Required 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.
Default value is
false
.
POST
/api/data_views/default
curl \
--request POST 'http://localhost:5622/api/data_views/default' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '{"force":true,"data_view_id":"ff959d40-b880-11e8-a6d9-e546fe2bba5f"}'
Request example
{
"force": true,
"data_view_id": "ff959d40-b880-11e8-a6d9-e546fe2bba5f"
}
Response examples (200)
{
"acknowledged": true
}
Response examples (400)
{
"error": "Bad Request",
"message": "string",
"statusCode": 400
}