kibana/x-pack/plugins/fleet/cypress/tasks/ui_settings.ts
Gloria Hornero dd4708414a
Upgrading cypress to 12.17.4 (#165869)
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>
2023-09-19 10:15:53 -07:00

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,
},
},
});
}