diff options
author | Julien Levesy <jlevesy@gmail.com> | 2018-10-15 16:46:26 +0200 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2018-10-15 15:46:26 +0100 |
commit | 43bdbb0c3a0d93a8bf34ae5e2abbad4586a2581b (patch) | |
tree | aeca7af5d638e22c9e425f352494a1b17d72d83d /model | |
parent | 160d2785927d4729441dfa6ecd0d5536ec640687 (diff) | |
download | chat-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.go | 10 |
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{} |