Update settings

PUT /api/fleet/settings
application/json; Elastic-Api-Version=2023-10-31

Body

Responses

PUT /api/fleet/settings
curl \
 -X PUT https://localhost:5601/api/fleet/settings \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "additional_yaml_config": "string",
  "delete_unenrolled_agents": {
    "enabled": true,
    "is_preconfigured": true
  },
  "fleet_server_hosts": [
    "string"
  ],
  "has_seen_add_data_notice": true
}
Response examples (200)
{
  "item": {
    "delete_unenrolled_agents": {
      "enabled": true,
      "is_preconfigured": true
    },
    "fleet_server_hosts": [
      "string"
    ],
    "has_seen_add_data_notice": true,
    "id": "string",
    "prerelease_integrations_enabled": true
  }
}
Response examples (400)
{
  "error": "string",
  "message": "string",
  "statusCode": 42.0
}