Delete single attachments

This commit is contained in:
Eike Kettner
2020-04-26 23:04:03 +02:00
parent 916a9dbcc9
commit a939839041
11 changed files with 149 additions and 25 deletions

View File

@ -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