I’m trying to update our Web Messaging deployment via the C# SDK to move the launcher to the top right and change the primary color. The UI works fine, but I need this automated in our deployment pipeline.
I’m using the UpdateDeployment method with a WebMessagingDeploymentUpdateRequest. Here is the JSON payload I’m constructing:
var request = new WebMessagingDeploymentUpdateRequest
{
Name = "Prod Messaging",
Enabled = true,
Customizations = new WebMessagingCustomizations
{
PrimaryColor = "#FF5733",
LauncherPosition = "top-right",
WidgetTitle = "Support"
}
};
var result = await _genesysClient.WebMessaging.DeploymentsApi.UpdateDeploymentAsync(deploymentId, request);
The API returns a 200 OK. The response object shows the color is set correctly. But when I open the widget in the browser, it’s still blue and bottom-right.
I checked the docs which say:
“Customizations are applied immediately upon update.”
Things I’ve tried:
- Hard refresh with cache disabled. Still default styles.
- Calling
GetDeploymentimmediately after update. The JSON returns the correct hex code. - Waiting 10 minutes. No change.
- Checking the deployment ID. It matches the one in the UI.
Is there a separate step to publish or build the CSS? Or is the Customizations object nested differently in the C# SDK than the spec implies?