Spaces method and path for this operation:
post /s/{space_id}/api/data_views/data_view/{viewId}/fields
Refer to Spaces for more information.
Update fields presentation metadata such as count, customLabel, customDescription, and format.
POST
/api/data_views/data_view/{viewId}/fields
curl \
--request POST 'https://localhost:5601/api/data_views/data_view/ff959d40-b880-11e8-a6d9-e546fe2bba5f/fields' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '"{\n \"fields\": {\n \"field1\": {\n \"count\": 123,\n \"customLabel\": \"Field 1 label\"\n },\n \"field2\": {\n \"customDescription\": \"Field 2 description\",\n \"customLabel\": \"Field 2 label\"\n }\n }\n}"'
Request example
{
"fields": {
"field1": {
"count": 123,
"customLabel": "Field 1 label"
},
"field2": {
"customDescription": "Field 2 description",
"customLabel": "Field 2 label"
}
}
}