9 messages in com.googlegroups.google-picasa-data-apiCannot update or delete entries
FromSent OnAttachments
Henrik27 Mar 2008 00:06 
Cameron Hinkle27 Mar 2008 08:43 
Ryan Boyd (Google)27 Mar 2008 08:57 
Henrik28 Mar 2008 00:41 
Cameron Hinkle02 Apr 2008 22:55 
Sven03 Apr 2008 10:20 
Cameron Hinkle03 Apr 2008 10:27 
Sven03 Apr 2008 11:43 
Cameron Hinkle03 Apr 2008 11:54 
Subject:Cannot update or delete entries
From:Henrik (henr@gmail.com)
Date:03/27/2008 12:06:03 AM
List:com.googlegroups.google-picasa-data-api

Hi,

I'm having trouble updating or deleting entries, and I believe the problem is that I don't have the correct request URL:s due to not knowing the version of my entries. How do I retrieve the version so that I can delete or update albums, photos or comments?

The Picasa API states that all entries should have a <link rel="edit"> holding the proper URL (.../albumid/.../photoid/.../version) but I cannot find any such element in any type of entry. For photos I have however found that there is a <gphoto:version> element that seems to hold the proper version so that I can construct the delete/update URL by appending the version to the entry URL. There is however no such element for albums or comments. I don't care so much about comments but I really need to be able to delete or update albums.

So:

1) Is the <link rel="edit"> element missing in all types of entries due to a bug in the API? 2) Is there an alternative way of retrieving the version for albums and comments? 3) Is there an easier way to delete or update entries without knowing the version at all? I would think that the most common case is that you don't care about the version, you simply want to delete the entry. Why bother with the version at all, couldn't there be a method to delete entries without stating the version? It would be more efficient to simply do a PUT or DELETE request with a URL constructed from a known entry id without first having to do a GET to retrieve the entry, then parse it for the edit URL, and then make a second request?

Thanks