Create agent binary download source Beta

POST /api/fleet/agent_download_sources
application/json; Elastic-Api-Version=2023-10-31

Body

Responses

  • 200 application/json; Elastic-Api-Version=2023-10-31

    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; Elastic-Api-Version=2023-10-31

    Generic Error

    Hide response attributes Show response attributes object
POST /api/fleet/agent_download_sources
curl \
 -X POST https://localhost:5601/api/fleet/agent_download_sources \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "host": "string",
  "id": "string",
  "is_default": true,
  "name": "string"
}
Response examples (200)
{
  "item": {
    "host": "string",
    "id": "string",
    "is_default": true,
    "name": "string",
    "proxy_id": "string"
  }
}
Response examples (400)
{
  "error": "string",
  "message": "string",
  "statusCode": 42.0
}