Unlink an attachment from a stream Technical Preview

View as Markdown
DELETE /api/streams/{streamName}/attachments/{attachmentType}/{attachmentId}

Spaces method and path for this operation:

delete /s/{space_id}/api/streams/{streamName}/attachments/{attachmentType}/{attachmentId}

Refer to Spaces for more information.

Unlinks an attachment from a stream. Noop if the attachment is not linked to the stream.

[Required authorization] Route required privileges: manage_stream.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • streamName string Required

    The name of the stream

  • attachmentType string Required

    The type of the attachment

    Values are dashboard, rule, or slo.

  • attachmentId string Required

    The ID of the attachment

application/json

Body

object object

Additional properties are NOT allowed.

Responses

  • 200 application/json

    Successfully unlinked attachment

DELETE /api/streams/{streamName}/attachments/{attachmentType}/{attachmentId}
curl \
 --request DELETE 'https://<KIBANA_URL>/api/streams/{streamName}/attachments/{attachmentType}/{attachmentId}' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"value":{}}'
Request example
{
  "value": {}
}
Response examples (200)
{
  "acknowledged": true
}