Elastic Stack (ELK Stack) Fleet package policies API

Fleet package policies APIs enable you to manage Fleet package policies, including creating, updating, and deleting policies, performing bulk operations, and managing policy upgrades.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/fleet/package_policies List Fleet package policies · Get package policies #
Ask an LLM
“Which integration package policies are configured in Fleet?”
“Can I list only the package policies that have an upgrade available?”
Tell an agent
List my Fleet package policies.
Show package policies matching KQL {kuery}, with agent counts {withAgentCount}.
POST /api/fleet/package_policies Create a package policy on an agent policy · Create a package policy #
Ask an LLM
“How do I add an integration to an agent policy in Fleet?”
“Can I create a package policy using the simplified format?”
Tell an agent
Create a new package policy and attach it to an agent policy.
Create a package policy using the {format} request format.
POST /api/fleet/package_policies/_bulk_get Fetch several package policies by ID · Bulk get package policies #
Ask an LLM
“Can I fetch several package policies in one request?”
“Will a bulk lookup fail if one of the package policy IDs is missing?”
Tell an agent
Get package policies {ids}.
Look up package policies {ids}, ignoring missing ones: {ignoreMissing}.
DELETE /api/fleet/package_policies/{packagePolicyId} Delete a package policy · Delete a package policy #
Ask an LLM
“How do I remove one integration from an agent policy?”
“Can I force-delete a managed package policy?”
Tell an agent destructive · confirm first
Delete package policy {packagePolicyId}.
Force delete package policy {packagePolicyId} with force {force}.
GET /api/fleet/package_policies/{packagePolicyId} Get a package policy · Get a package policy #
Ask an LLM
“What inputs and variables does a specific package policy have?”
“Can I retrieve one integration policy by its ID?”
Tell an agent
Get package policy {packagePolicyId}.
Show package policy {packagePolicyId} in the {format} format.
PUT /api/fleet/package_policies/{packagePolicyId} Update a package policy · Update a package policy #
Ask an LLM
“How do I change the settings of an integration already on an agent policy?”
“Can I edit one package policy's inputs in place?”
Tell an agent
Update package policy {packagePolicyId}.
Save new settings to package policy {packagePolicyId} using the {format} format.
POST /api/fleet/package_policies/delete Delete several package policies · Bulk delete package policies #
Ask an LLM
“Can I remove many integrations from agent policies in one call?”
“What bulk deletes package policies by a list of IDs?”
Tell an agent destructive · confirm first
Bulk delete package policies {packagePolicyIds}.
Remove all of these package policies, force {force}: {packagePolicyIds}.
POST /api/fleet/package_policies/upgrade Upgrade package policies to a newer version · Upgrade a package policy #
Ask an LLM
“How do I move integrations onto the latest package version?”
“Can I upgrade several package policies at once?”
Tell an agent
Upgrade package policies {packagePolicyIds} to the newer package version.
Apply the available integration upgrade to {packagePolicyIds}.
POST /api/fleet/package_policies/upgrade/dryrun Preview a package policy upgrade · Dry run a package policy upgrade #
Ask an LLM
“What would change if I upgraded an integration's package version?”
“Can I preview a package policy upgrade to a specific version first?”
Tell an agent
Dry run the upgrade of package policies {packagePolicyIds}.
Preview upgrading {packagePolicyIds} to package version {packageVersion}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elk-stack:elk-stack-fleet-package-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elk-stack-fleet-package-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: Kibana Team
  description: The Kibana REST APIs enable you to manage resources such as connectors, data views, and saved objects.
  title: Kibana Fleet package policies API
  version: ''
  x-doc-license:
    name: Attribution-NonCommercial-NoDerivatives 4.0 International
    url: https://creativecommons.org/licenses/by-nc-nd/4.0/
  x-feedbackLink:
    label: Feedback
    url: https://github.com/elastic/docs-content/issues/new?assignees=&labels=feedback%2Ccommunity&projects=&template=api-feedback.yaml&title=%5BFeedback%5D%3A+
servers:
- url: https://{kibana_url}
  variables:
    kibana_url:
      default: localhost:5601
security:
- apiKeyAuth: []
- basicAuth: []
tags:


# --- truncated at 32 KB (120 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-fleet-package-policies-api-openapi.yml