Bulk install packages

View as Markdown
POST /api/fleet/epm/packages/_bulk

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/epm/packages/_bulk

Refer to Spaces for more information.

Query parameters

  • prerelease boolean

    Whether to return prerelease versions of packages (e.g. beta, rc, preview)

    Default value is false.

application/json

Body

  • force boolean

    force install to ignore package verification errors

  • packages array[string | object] Required

    list of packages to install

    One of:

    package name

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • items array[object] Required
      Hide items attributes Show items attributes object
      • name string
      • version string
    • response array[object] Deprecated
      Hide response attributes Show response attributes object
      • name string
      • version string
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
POST /api/fleet/epm/packages/_bulk
curl \
 --request POST 'https://localhost:5601/api/fleet/epm/packages/_bulk' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"force":true,"packages":["string"]}'