I am looking for script in JAVA to help call the REST API to upload PDFs and map the index values to categories and attributes. Any help is greatly appreciated.
Have a look at another post about uploading file using Java. Category attributes are sent in the part with the "body" parameter, formatted like in anpther post.