summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorJulien Levesy <jlevesy@gmail.com>2018-10-15 16:46:26 +0200
committerGeorge Goldberg <george@gberg.me>2018-10-15 15:46:26 +0100
commit43bdbb0c3a0d93a8bf34ae5e2abbad4586a2581b (patch)
treeaeca7af5d638e22c9e425f352494a1b17d72d83d /model
parent160d2785927d4729441dfa6ecd0d5536ec640687 (diff)
downloadchat-43bdbb0c3a0d93a8bf34ae5e2abbad4586a2581b.tar.gz
chat-43bdbb0c3a0d93a8bf34ae5e2abbad4586a2581b.tar.bz2
chat-43bdbb0c3a0d93a8bf34ae5e2abbad4586a2581b.zip
Add a delete brand image action on the APIv4 (#9552)
Diffstat (limited to 'model')
-rw-r--r--model/client4.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/client4.go b/model/client4.go
index 6a613b6b3..c35dab904 100644
--- a/model/client4.go
+++ b/model/client4.go
@@ -2997,6 +2997,16 @@ func (c *Client4) GetBrandImage() ([]byte, *Response) {
}
}
+func (c *Client4) DeleteBrandImage() *Response {
+ r, err := c.DoApiDelete(c.GetBrandRoute() + "/image")
+
+ if err != nil {
+ return BuildErrorResponse(r, err)
+ }
+
+ return BuildResponse(r)
+}
+
// UploadBrandImage sets the brand image for the system.
func (c *Client4) UploadBrandImage(data []byte) (bool, *Response) {
body := &bytes.Buffer{}