---
title: "Bulk update attachments"
method: POST
path: "/api/streams/{streamName}/attachments/_bulk"
tags: ["streams"]
---

# Bulk update attachments

`POST /api/streams/{streamName}/attachments/_bulk`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/streams/{streamName}/attachments/_bulk</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-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.<br/><br/>[Required authorization] Route required privileges: manage_stream.

## Path parameters

- `streamName` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `operations` union[], required
    - union
      - object
        - `index` object, required
          - `id` string, required
          - `type` 'dashboard' | 'rule' | 'slo', required
      - object
        - `delete` object, required
          - `id` string, required
          - `type` 'dashboard' | 'rule' | 'slo', required

## Response `200`

Successfully performed bulk operations

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
