@thomas yu: "associateObjectId":fileHandle['id'] should be:
Take this for example:
It gives this error:
1) copyRequests should be a list according to http://docs.synapse.org/rest/org/sagebionetworks/repo/model/file/BatchFileHandleCopyRequest.html
2) The file belongs to the entity not the annotations. I.e. don't use "associateObjectId":bundle['annotations']['id'] but "associateObjectId":bundle['entity']['id']
3) All filehandle interactions are not to the regular repo endpoint but the file endpoint, i.e.
syn.restPOST('/filehandles/copy', ..., endpoint=syn.fileHandleEndpoint)
Thanks for all the help. I did this,
but I'm getting these errors:
I can open a PLFM unless its an error on how I structured the list
Looking at code seems to indicate that it is gone.