Source code for mattermostautodriver.endpoints.brand

from ._base import Base
from typing import Any, BinaryIO

__all__ = ["Brand"]


[docs]class Brand(Base):
[docs] def get_brand_image(self): """Get brand image `Read in Mattermost API docs (brand - GetBrandImage) <https://developers.mattermost.com/api-documentation/#/operations/GetBrandImage>`_ """ return self.client.get("""/api/v4/brand/image""")
[docs] def upload_brand_image(self, image: BinaryIO): """Upload brand image image: The image to be uploaded `Read in Mattermost API docs (brand - UploadBrandImage) <https://developers.mattermost.com/api-documentation/#/operations/UploadBrandImage>`_ """ __files = {"image": image} return self.client.post("""/api/v4/brand/image""", files=__files)
[docs] def delete_brand_image(self): """Delete current brand image `Read in Mattermost API docs (brand - DeleteBrandImage) <https://developers.mattermost.com/api-documentation/#/operations/DeleteBrandImage>`_ """ return self.client.delete("""/api/v4/brand/image""")