mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Delete single attachments
This commit is contained in:
@ -3,6 +3,7 @@ module Api exposing
|
||||
, changePassword
|
||||
, checkCalEvent
|
||||
, createMailSettings
|
||||
, deleteAttachment
|
||||
, deleteEquip
|
||||
, deleteItem
|
||||
, deleteMailSettings
|
||||
@ -183,6 +184,23 @@ checkCalEvent flags input receive =
|
||||
|
||||
|
||||
|
||||
--- Delete Attachment
|
||||
|
||||
|
||||
deleteAttachment :
|
||||
Flags
|
||||
-> String
|
||||
-> (Result Http.Error BasicResult -> msg)
|
||||
-> Cmd msg
|
||||
deleteAttachment flags attachId receive =
|
||||
Http2.authDelete
|
||||
{ url = flags.config.baseUrl ++ "/api/v1/sec/attachment/" ++ attachId
|
||||
, account = getAccount flags
|
||||
, expect = Http.expectJson receive Api.Model.BasicResult.decoder
|
||||
}
|
||||
|
||||
|
||||
|
||||
--- Attachment Metadata
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user