Branding Service API Specification
The Branding Service allows to associate a company logo with a space. The service provides a standardized way for other components in the platform to retrieve logo(s) relevant to a given space. This can be for displaying in the user interface or, for example, for inclusion in documents generated by the platform.
At the moment only one logo can be associated with a space; we call this the primary logo. Although each space can have at most one primary logo, a space can be associated with partner spaces, each potentially having their own logo. The Branding Service allows to retrieve the logo(s) of a given space and all its partner spaces in a single call.
Uploading a logo
In order to upload a logo, you must first generate an upload link using the Create a logo upload link endpoint. This endpoint requires you to specify the file size of the logo and its image type.
Note: Only image/jpeg and "image/png are supported as logo image type.
When the call to the endpoint completes successfully, it returns a pre-signed URL that allows you to perform the
actual image upload. This upload consists of a PUT request with the image bytes as body and the following
mandatory request headers:
Content-Type: This must be set toapplication/octet-streamregardless of the image's actual type.Content-Length: This is the size of the image in bytes and must be equal to the value that was previously specified in the upload link creation request.x-goog-if-generation-match: The value for this header must be set to0.x-upload-content-length: This is the size of the image in bytes and must be equal to the value that was previously specified in the upload link creation request.
Note: A generated upload link is valid for a limited time and can only be used once to upload an image. It can not be reused to overwrite an earlier uploaded image.