The study update PGN moves API doesn't seem to handle errors at all.
When posting a valid PGN, the study chapter is updated correctly. When posting an invalid PGN, the study chapter content is completely deleted and the API returns 204 like nothing happened.
Expected result would be an HTTP error code and no updates to the existing chapter if the PGN moves cannot be parsed into a valid PGN.
The study update PGN moves API doesn't seem to handle errors at all.
When posting a valid PGN, the study chapter is updated correctly. When posting an invalid PGN, the study chapter content is completely deleted and the API returns 204 like nothing happened.
Expected result would be an HTTP error code and no updates to the existing chapter if the PGN moves cannot be parsed into a valid PGN.