From 43bdbb0c3a0d93a8bf34ae5e2abbad4586a2581b Mon Sep 17 00:00:00 2001 From: Julien Levesy Date: Mon, 15 Oct 2018 16:46:26 +0200 Subject: Add a delete brand image action on the APIv4 (#9552) --- model/client4.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'model') 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{} -- cgit v1.2.3-1-g7c22