0

I am trying to write a simple HTTP PUT command to update a file in an IBM Connections community. I find the syntax of creating a file in a community on IBM Connections wiki. But couldn't locate any information on how to update an existing community file.

To be specific, I know how to update the file in my own collection:

PUT /files/basic/api/myuserlibrary/document/f7064edd-477a-44b7-85a3-d35276e4a362/media

Content-Type=application/binary
X-Update-Nonce=myNonce
Filename=myFile

But couldn't quite figure out how to do similar operation for an existing file in community.

NOTE: I am writing the code in VBA within Excel, using the XMLHTTP reference library to send the HTTP request to the server.

Mark
  • 2,380
  • 11
  • 29
  • 49
  • 1
    switch the method to a POST and use X-HTTP-METHOD-OVERRIDE=PUT – Paul Bastide Mar 02 '15 at 14:55
  • Thanks @PaulBastide. Could you be more specific? Besides using POST instead of PUT, what would be the URL to send the POST? – Teddy Chu Mar 04 '15 at 01:14
  • same url... just add another header – Paul Bastide Mar 04 '15 at 01:35
  • Paul, I am sorry but I still couldn't quite figure it out. The URL I listed above was for another personal file and not in a community file. How do I figure out the URL for the community file that I want to update? – Teddy Chu Mar 12 '15 at 23:01
  • refer to http://stackoverflow.com/questions/28984433/ibm-connections-api-uploading-files-in-a-community-and-getting-nonce-widget – Paul Bastide Mar 13 '15 at 10:58

0 Answers0