I have created some Java resource files and uploaded at the org level . After some time I have updated those locally and need to upload but Whenever I try a PUT or DELETE on existing file I get a 405 Method Not allowed error . The Apigee documentation page ( http://apigee.com/docs/api-services/content/resource-files) doesn't mention anything about Update/Delete of resource files .
Does it mean we cannot update or delete a resource files once it is uploaded ? In that case what is the best way to make sure that we are referencing the latest resource files from the Code .
Actually the resource files which I am using have some dependent jars and my main Java callout class is in the proxy level .
Just to Update, was able to DELETE the Resource file by referring below link:
I guess Apigee main documentation page for resource files ( http://apigee.com/docs/api/resource-files) needs to be updated with the info .
Thanks, Manish. And apologies for the confusion. I've added an "Updating and deleting" section to the Resource Files page, which contains a link to the API. I'm also following up with engineering to see if there's an update API we don't currently know about. Having to update via delete and re-import isn't ideal, to say the least. We'll update the docs with any new info.
Hey again Manish - I found out about an update API, and I'll be updating the docs. For now, you can do a PUT on the URI. For example, for org-scoped resources, you'd do a PUT on /v1/organizations/resourcefiles/<file_type>/<filename>. Stay tuned for the doc update.
----