Update agent binary download source by ID

PUT /api/fleet/agent_download_sources/{sourceId}

Spaces method and path for this operation:

put /s/{space_id}/api/fleet/agent_download_sources/{sourceId}

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

  • sourceId string Required
application/json

Body

  • host string Required
  • is_default boolean Required
  • name string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • item object Required
      Hide item attributes Show item attributes object
      • host string Required
      • id string
      • is_default boolean Required
      • name string Required
      • proxy_id string | null

        The ID of the proxy to use for this download source. See the proxies API for more information.

  • 400 application/json

    Generic Error

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