Create agent binary download source

View as Markdown
POST /api/fleet/agent_download_sources

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/agent_download_sources

Refer to Spaces for more information.

application/json

Body

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

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • item object
      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
POST /api/fleet/agent_download_sources
curl \
 --request POST 'https://localhost:5601/api/fleet/agent_download_sources' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"host":"string","id":"string","is_default":true,"name":"string"}'