The S and Classic APIs are totally different, basically. You can’t take an S example and use it for Classic, or vice-versa.
The “data” part is different, as well as the name of the file. The necessary structure to POST a new file is documented in the Omeka Classic developer docs.