From the information and code provided, I see no issues with your code. The code only shows a Method, onUpdateQuestion that has a UserDataCloud argument passed in, and expected to return a UserDataCloud variable type. There is nothing wrong with that part, or the part using a Method-scoped annotation[1].
To be able to assist with your setup, we would require better understanding of your setup and that requires a lot more information than provided. Is there an error message returned when attempting to hit the Endpoint? What is the error message?
Better still, for code related inquiries, we recommend that you ask those on public forums like Stackoverflow. If however you think this issue is a bug, then please open an issue using this link[2].