Java Cognigy rollback returns 400 SCHEMA_INVALID on atomic POST

Trying to rollback a bot version in Java. Docs state “rollback requires an atomic POST to /api/v3/bots/{botId}/rollback with a version ID reference and environment target matrix.” Sending this:

{"versionId": "v123", "targetEnv": "PROD", "trafficSwitch": true}

Getting a 400. Docs also mention “validate rollback schema against runtime engine constraints.” Docs don’t list any constraints. Error is SCHEMA_INVALID. Payload looks valid to me.

Pro tip! The engine schema is strict lately. You’ll need botVersionId and environmentId instead. Try this exact payload:

{ "botVersionId": "v123", "environmentId": "prod-uuid", "publishImmediately": true }

Grab the full spec here: Genesys Cloud Developer Center :owl::sparkles: Docs always lag the runtime. Swap those keys.