Hi team, quick question related to white-labelling...
# gooddata-cloud
a
Hi team, quick question related to white-labelling - how can I set a custom logo to appear in automated emails? I was able to update the logo that appears in slide deck exports, but not sure how to update this setting.
k
Great news — the same white-labeling logo setting that controls the portal logo also affects automated emails. Based on your screenshot, you can see the GoodData logo and corporate address in the email footer, both of which will be replaced once you configure white-labeling properly. Enabling logo white-labeling hides the GoodData corporate address line and replaces the GoodData logo with your own branding in alert and scheduled export emails. [Customize Emails] To set this up via API, follow these three steps: 1. Whitelist your logo's domain
Copy code
curl $ENDPOINT/api/v1/entities/cspDirectives/img-src \
  -H "Content-Type: application/vnd.gooddata.api+json" \
  -H "Accept: application/vnd.gooddata.api+json" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -X PUT \
  -d '{
    "data": {
        "attributes": {
            "sources": [
                "{YOUR_DOMAIN_URL}",
                "'\''self'\''"
            ]
        },
        "id": "img-src",
        "type": "cspDirective"
    }
}'
2. Create the whiteLabeling organization setting
Copy code
curl $ENDPOINT/api/v1/entities/organizationSettings \
  -H "Content-Type: application/vnd.gooddata.api+json" \
  -H "Accept: application/vnd.gooddata.api+json" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -X POST \
  -d '{
    "data": {
        "type": "organizationSetting",
        "id": "<some-id>",
        "attributes": {
            "content": {
                "enabled": true,
                "logoUrl": "{LOGO_URL}",
                "faviconUrl": "{FAVICON_URL}",
                "appleTouchIconUrl": "{APPLE_TOUCH_ICON_URL}"
            },
            "type": "WHITE_LABELING"
        }
    }
}'
3. Update the logo (if already created) If the
whiteLabeling
setting already exists (e.g., created via the UI), use a PUT request instead: [Update Logo]
Copy code
curl $ENDPOINT/api/v1/entities/organizationSettings/whiteLabeling \
  -H "Content-Type: application/vnd.gooddata.api+json" \
  -H "Accept: application/vnd.gooddata.api+json" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -X PUT \
  -d '{
    "data": {
        "type": "organizationSetting",
        "id": "<some-id>",
        "attributes": {
            "content": {
                "enabled": true,
                "logoUrl": "{LOGO_URL}",
                "faviconUrl": "{FAVICON_URL}",
                "appleTouchIconUrl": "{APPLE_TOUCH_ICON_URL}"
            },
            "type": "WHITE_LABELING"
        }
    }
}'
Key requirements for the logo file: • Format: PNG • Size: 120×25 px • Must be publicly accessible on the internet [Upload Your Logo] Once uploaded, the logo change takes effect immediately upon refresh, and your custom logo will appear in automated emails in place of the GoodData logo. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups. 👀 Our Support team monitors all messages and will jump in if needed.
y
Hi Anant, Please let us know if you need further assistance.