Christoph Lütjen pointed out that according to this it should be new MultipartFormDataSection("data", data)
, despite the official documentation example using new MultipartFormDataSection("field1=foo&field2=bar")
.
Changing it to new MultipartFormDataSection("data", data)
fixed the issue.