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.
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
}