Write STRUCT-variables through REST API

Hi all,
I am using the PLCnext REST API with Python3 to read and write variables from/to the GDS.
Reading works well with “Simple” datatypes (like BOOL, INT etc.) as well as with complex STRUCTS, but writing variables doesn’t work with STRUCT-datatypes.
I have a variable udtTest of datatype TEST that looks like this in debug-window:
grafik.png
I can read the data from there, but if I try to write I get an error in the response saying “TypeMismatch”.
my code looks like this:
grafik.pngResponse:
grafik.png
Does anybody have an idea how this can be solved?

Thanks and regards
Fabian

I just received feedback from the Phoenix Contact support.
Short answer: It is not possible to write to STRUCT-variables via the REST API.

Regards
Fabian

I have now asked for this limitation of the REST API to be clarified in the PLCnext Technology Info Center.
I can confirm that the same limitation does not exist for the grpc interface.