Install a package from the registry

POST /api/fleet/epm/packages/{pkgName}/{pkgVersion}

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/epm/packages/{pkgName}/{pkgVersion}

Refer to Spaces for more information.

Install a specific version of a package from the Elastic Package Registry.

[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • pkgName string Required

    Package name

    Minimum length is 0.

  • pkgVersion string Required

    Package version

Query parameters

  • prerelease boolean

    When true, allow installing prerelease versions

  • ignoreMappingUpdateErrors boolean

    When true, ignore mapping update errors during installation

    Default value is false.

  • skipDataStreamRollover boolean

    When true, skip data stream rollover after installation

    Default value is false.

  • skipDependencyCheck boolean

    Skip dependency validation when installing a package with dependencies

    Default value is false.

application/json

Body

  • acknowledge_breaking_changes boolean Generally available

    When true, acknowledge the breaking changes listed in the package changelog for the versions being upgraded. Without it, an upgrade whose version range includes breaking changes is rejected. The force flag does not bypass this check.

    Default value is false.

  • allow_outdated_version boolean

    When true, allow installing a version older than the latest available. Bypasses only the out-of-date version check.

    Default value is false.

  • force boolean

    Default value is false.

  • ignore_constraints boolean

    Default value is false.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • _meta object Required

      Additional properties are NOT allowed.

      Hide _meta attributes Show _meta attributes object
      • install_source string Required
      • name string Required
    • items array[object] Required

      Not more than 10000 elements.

      Any of:
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
POST /api/fleet/epm/packages/{pkgName}/{pkgVersion}
curl \
 --request POST 'https://<KIBANA_URL>/api/fleet/epm/packages/{pkgName}/{pkgVersion}' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{
  "ignore_constraints": false
}'
Request example
Install a package, optionally ignoring constraints
{
  "ignore_constraints": false
}
Response examples (200)
Package successfully installed
{
  "_meta": {
    "install_source": "registry"
  },
  "items": [
    {
      "id": "aws-logs-aws.cloudwatch_logs-default",
      "type": "index_template"
    }
  ]
}
Response examples (400)
Example of a generic error response
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}