Update Fleet Server host by ID

View as Markdown
PUT /api/fleet/fleet_server_hosts/{itemId}

Spaces method and path for this operation:

put /s/{space_id}/api/fleet/fleet_server_hosts/{itemId}

Refer to Spaces for more information.

Headers

  • kbn-xsrf string Required

    Kibana's anti Cross-Site Request Forgery token. Can be any string value.

Path parameters

  • itemId string Required
application/json

Body

  • host_urls array[string]
  • is_default boolean
  • is_internal boolean
  • name string
  • proxy_id string | null

    The ID of the proxy to use for this fleet server host. See the proxies API for more information.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • item object Required
      Hide item attributes Show item attributes object
      • host_urls array[string] Required
      • id string Required
      • is_default boolean Required
      • is_internal boolean
      • is_preconfigured boolean Required
      • name string
      • proxy_id string
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
PUT /api/fleet/fleet_server_hosts/{itemId}
curl \ --request PUT 'https://localhost:5601/api/fleet/fleet_server_hosts/{itemId}' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: string" \ --data '{"host_urls":["string"],"is_default":true,"is_internal":true,"name":"string","proxy_id":"string"}'