Spaces method and path for this operation:
post /s/{space_id}/api/streams/{streamName}/attachments/_bulk
Refer to Spaces for more information.
Bulk update attachments linked to a stream. Can link new attachments and delete existing ones. Supports mixed attachment types in a single request.
[Required authorization] Route required privileges: manage_stream.
POST
/api/streams/{streamName}/attachments/_bulk
curl \
--request POST 'https://localhost:5601/api/streams/{streamName}/attachments/_bulk' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '"{\n \"operations\": [\n {\n \"index\": {\n \"id\": \"dashboard-123\",\n \"type\": \"dashboard\"\n }\n },\n {\n \"delete\": {\n \"id\": \"rule-456\",\n \"type\": \"rule\"\n }\n }\n ]\n}"'
Request example
{
"operations": [
{
"index": {
"id": "dashboard-123",
"type": "dashboard"
}
},
{
"delete": {
"id": "rule-456",
"type": "rule"
}
}
]
}
Response examples (200)
{
"acknowledged": true
}