mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Co-authored-by: Yuliia Naumenko <jo.naumenko@gmail.com> Co-authored-by: Thomas Watson <w@tson.dk> Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
22 lines
592 B
TypeScript
22 lines
592 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { request } from './common';
|
|
|
|
// Create a Fleet server policy
|
|
export function setUISettings(settingsKey: string, settingsValue: any) {
|
|
request({
|
|
method: 'POST',
|
|
url: '/internal/kibana/settings',
|
|
headers: { 'kbn-xsrf': 'xx' },
|
|
body: {
|
|
changes: {
|
|
[settingsKey]: settingsValue,
|
|
},
|
|
},
|
|
});
|
|
}
|