Bot deployment pipeline failing with 422 Unprocessable Entity on custom property validation.
Environment: Genesys Cloud CLI v2.1.0, AU-1 BYOC.
Action: Automating bot structure updates via GitHub Actions. Terraform applies successfully, but CLI sync fails on genesyscloud bot import.
Error response body:
{
"errors": [
{
"code": "invalid.customProperty",
"message": "Value for property 'session_context' is not valid. Expected object, got string."
}
]
}
The JSON payload explicitly defines session_context as an object. Verified the schema in Postman works fine with the exact same payload. CLI seems to serialize the object incorrectly or strip nested fields during the import handshake.
YAML config for the bot properties:
bot_properties:
session_context:
user_id: "${user.id}"
intent_score: 0.95
Has anyone seen this serialization mismatch with CLI v2.1.0? Looking for a workaround to force the correct type casting or a flag to bypass the strict validation check during import. Cannot update bots manually at scale.