POST /api/fleet/epm/bulk_assets

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/epm/bulk_assets

Refer to Spaces for more information.

Retrieve multiple Kibana saved object assets by their IDs and types.

[Required authorization] Route required privileges: integrations-read OR fleet-setup OR fleet-all.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

application/json

Body

  • assetIds array[object] Required

    Not more than 10000 elements.

    Hide assetIds attributes Show assetIds attributes object
    • id string Required
    • type string Required

Responses

  • 200 application/json

    Successful response

    Hide response attribute Show response attribute object
    • items array[object] Required

      Not more than 10000 elements.

      Hide items attributes Show items attributes object
      • appLink string
      • attributes object Required

        Additional properties are NOT allowed.

        Hide attributes attributes Show attributes attributes object
        • description string
        • service string
        • title string
      • id string Required
      • type string Required
      • updatedAt string
  • 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/bulk_assets
curl \
 --request POST 'https://localhost:5601/api/fleet/epm/bulk_assets' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"assetIds":[{"id":"dashboard-id-1","type":"dashboard"},{"id":"index-pattern-id-1","type":"index_pattern"}]}'
Request example
Retrieve multiple assets by their IDs and types
{
  "assetIds": [
    {
      "id": "dashboard-id-1",
      "type": "dashboard"
    },
    {
      "id": "index-pattern-id-1",
      "type": "index_pattern"
    }
  ]
}
Response examples (200)
Requested assets
{
  "items": [
    {
      "appLink": "/app/dashboards#/view/dashboard-id-1",
      "attributes": {
        "title": "My Dashboard"
      },
      "id": "dashboard-id-1",
      "type": "dashboard"
    }
  ]
}
Response examples (400)
Example of a generic error response
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}