Architect REST API action dropping custom_attributes on Express endpoint

Problem
Architect flow v4.2.1 drops the custom_attributes payload on the REST API action to the Express middleware. Response returns 422 Unprocessable Entity with error_code: VALIDATION_FAILED.

{ "task_data": { "queue_id": "123" } }

Error
The JSON body hits the endpoint but doesn’t parse right. Spec looks fine.

Are you sending raw JSON or a flow variable? Cause: genesys-cloud-sdk drops nested objects when they don’t pass the serializer before POST /api/v2/interaction/interactions. Solution: force string cast on the custom_attributes map.

{ "task_data": { "queue_id": "123", "custom_attributes": "{\"priority\":\"high\"}" } }
1 Like