Unlink an attachment from a stream
Technical Preview
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.
Path parameters
-
The name of the stream
-
The type of the attachment
Values are
dashboard,rule, orslo. -
The ID of the attachment
DELETE
/api/streams/{streamName}/attachments/{attachmentType}/{attachmentId}
curl \
--request DELETE 'https://localhost:5601/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
}