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.

[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

Query parameters

  • prerelease boolean
application/json

Body

  • force boolean

    Default value is false.

  • packages array[string | object] Required

    At least 1 element.

    Any of:

Responses

  • 200 application/json

    OK: A successful request.

    Hide response attribute Show response attribute object
    • items array[object] Required
      Any of:
  • 400 application/json

    A bad request.

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