“{“message”:“Bad Request”,“code”:400,“details”:[{“field”:“timeZone”,“message”:“must be a valid time zone identifier”,“code”:“invalid_format”}]}”-that’s the response when updating user preferences via the API, and it’s happening intermittently, but consistently enough to be a problem. The flow is MuleSoft calling the Genesys Cloud API to set timezone after a user completes an onboarding form, using the Java SDK version 49.0.0. It’s not a simple string issue, though-the SDK’s User object handles the timezone formatting, and the same payload works fine sometimes, then fails with that invalid format error. The user ID is passed correctly, and we’ve confirmed the user exists.
- Genesys Cloud region: us-east-1
- Java SDK version: 49.0.0
- MuleSoft version: 4.4.0
- API endpoint: PATCH /api/v2/users/{userId}/preferences
- We’ve tried throttling the calls to eliminate any potential race conditions.
- We’ve verified the timezone string is a valid IANA timezone identifier, like “America/Chicago”.
- We’ve checked the user’s existing timezone to see if there’s a conflict, but the flow sets it regardless.
- The payload being sent is something like this:
User user = new User(); user.setTimeZone("America/Chicago"); patchUserPreferences(userId, user);- it’s not a formatting error on our end, it’s the API rejecting a valid timezone string.