I am attempting to change the date on a photo in Google Photos (Picasa), 
and I am able to change the `<title>` of the entry but not the 
`<gphoto:timestamp>` which Google Photos uses to display the date. 

I changed the date in the Google Photos Web UI for this photo, and the date 
I changed it to is reflected in the response XML, but the date I try to 
specify in the `PATCH` is not recognized.

Here is my API call (done through Postman):

    PATCH 
> /data/entry/api/user/100286800715039616425/albumid/6336738648658367153/photoid/6363082761005259858
>  
> HTTP/1.1
>     Host: picasaweb.google.com
>     Authorization: Bearer ya29.*************************************
>     GData-Version: 2
>     Content-Type: application/xml
>     If-Match: *
>     Cache-Control: no-cache
>     
>     <entry xmlns='http://www.w3.org/2005/Atom'
>         xmlns:gd='http://schemas.google.com/g/2005'
>         xmlns:app='http://www.w3.org/2007/app' 
>         xmlns:gphoto='http://schemas.google.com/photos/2007' 
>         xmlns:exif='http://schemas.google.com/photos/exif/2007' 
>         xmlns:media='http://search.yahoo.com/mrss/'>
>       <title>my old photo</title>
>       <gphoto:timestamp>1481520757000</gphoto:timestamp>
>     </entry>


...and the response:


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *    <?xml version='1.0' encoding='UTF-8'?>    <entry         
> xmlns='http://www.w3.org/2005/Atom'         
> xmlns:gd='http://schemas.google.com/g/2005'         
> xmlns:app='http://www.w3.org/2007/app'         
> xmlns:gphoto='http://schemas.google.com/photos/2007'         
> xmlns:exif='http://schemas.google.com/photos/exif/2007'         
> xmlns:media='http://search.yahoo.com/mrss/' 
> gd:etag='&quot;XSp7ImA9&quot;'>        
> <id>https://picasaweb.google.com/data/entry/user/100286800715039616425/albumid/6336738648658367153/photoid/6363082761005259858</id>
>   
>       <published>2016-12-12T05:30:54.000Z</published>        
> <updated>2016-12-12T17:44:04.541Z</updated>        
> <app:edited>2016-12-12T17:44:04.541Z</app:edited>        <category 
> scheme='http://schemas.google.com/g/2005#kind' 
> term='http://schemas.google.com/photos/2007#photo'/>        <title>my old 
> photo</title>        <summary/>        <content type='image/jpeg' 
> src='https://lh3.googleusercontent.com/-X7xSJjwnAWw/WE42Dt4hXFI/AAAAAAAFdCs/4hsuSBR9jKc_azAhY2bTtChegxbZptfbQCHM/my%2Bold%2Bphoto'/>
>   
>       <link rel='http://schemas.google.com/g/2005#feed' 
> type='application/atom+xml' 
> href='https://picasaweb.google.com/data/feed/api/user/100286800715039616425/albumid/6336738648658367153/photoid/6363082761005259858'/>
>   
>       <link rel='alternate' type='text/html' 
> href='https://picasaweb.google.com/100286800715039616425/6336738648658367153#6363082761005259858'/>
>   
>       <link rel='http://schemas.google.com/photos/2007#canonical' 
> type='text/html' 
> href='https://picasaweb.google.com/lh/photo/-kPOb-BKp9G6CFYSh-w379MTjNZETYmyPJy0liipFm0'/>
>   
>       <link rel='self' type='application/atom+xml' 
> href='https://picasaweb.google.com/data/entry/api/user/100286800715039616425/albumid/6336738648658367153/photoid/6363082761005259858'/>
>   
>       <link rel='edit' type='application/atom+xml' 
> href='https://picasaweb.google.com/data/entry/api/user/100286800715039616425/albumid/6336738648658367153/photoid/6363082761005259858'/>
>   
>       <link rel='edit-media' type='image/jpeg' 
> href='https://picasaweb.google.com/data/media/api/user/100286800715039616425/albumid/6336738648658367153/photoid/6363082761005259858'/>
>   
>       <link rel='http://schemas.google.com/photos/2007#report' 
> type='text/html' 
> href='https://picasaweb.google.com/lh/reportAbuse?uname=100286800715039616425&amp;aid=6336738648658367153&amp;iid=6363082761005259858'/>
>   
>       <gphoto:id>6363082761005259858</gphoto:id>        
> <gphoto:albumid>6336738648658367153</gphoto:albumid>        
> <gphoto:access>only_you</gphoto:access>        
> <gphoto:width>5312</gphoto:width>        
> <gphoto:height>2988</gphoto:height>        
> <gphoto:size>3482222</gphoto:size>        <gphoto:checksum/>        
> <gphoto:timestamp>216081840000</gphoto:timestamp>        
> <gphoto:imageVersion>357419</gphoto:imageVersion>        
> <gphoto:commentingEnabled>true</gphoto:commentingEnabled>        
> <gphoto:commentCount>0</gphoto:commentCount>        
> <gphoto:streamId>shared_group_6363082761005259858</gphoto:streamId>        
> <gphoto:license id='0' name='All Rights Reserved' 
> url=''>ALL_RIGHTS_RESERVED</gphoto:license>        <gphoto:shapes 
> faces='done'/>        <exif:tags>            <exif:fstop>1.8</exif:fstop>  
>           <exif:make>LG Electronics</exif:make>            
> <exif:model>LG-H811</exif:model>            
> <exif:exposure>0.06666667</exif:exposure>            
> <exif:flash>false</exif:flash>            
> <exif:focallength>4.42</exif:focallength>            
> <exif:iso>400</exif:iso>            <exif:time>1478371450000</exif:time>    
>         
> <exif:imageUniqueID>8b541ba23622e2d90000000000000000</exif:imageUniqueID>  
>       </exif:tags>        <media:group>            <media:content 
> url='https://lh3.googleusercontent.com/-X7xSJjwnAWw/WE42Dt4hXFI/AAAAAAAFdCs/4hsuSBR9jKc_azAhY2bTtChegxbZptfbQCHM/my%2Bold%2Bphoto'
>  
> height='288' width='512' type='image/jpeg' medium='image'/>            
> <media:credit>Andrew Niesen</media:credit>            <media:description 
> type='plain'/>            <media:keywords/>            <media:thumbnail 
> url='https://lh3.googleusercontent.com/-X7xSJjwnAWw/WE42Dt4hXFI/AAAAAAAFdCs/4hsuSBR9jKc_azAhY2bTtChegxbZptfbQCHM/s72/my%2Bold%2Bphoto'
>  
> height='41' width='72'/>            <media:thumbnail 
> url='https://lh3.googleusercontent.com/-X7xSJjwnAWw/WE42Dt4hXFI/AAAAAAAFdCs/4hsuSBR9jKc_azAhY2bTtChegxbZptfbQCHM/s144/my%2Bold%2Bphoto'
>  
> height='81' width='144'/>            <media:thumbnail 
> url='https://lh3.googleusercontent.com/-X7xSJjwnAWw/WE42Dt4hXFI/AAAAAAAFdCs/4hsuSBR9jKc_azAhY2bTtChegxbZptfbQCHM/s288/my%2Bold%2Bphoto'
>  
> height='162' width='288'/>            <media:title type='plain'>my old 
> photo</media:title>        </media:group>    </entry>*


As you can see, the `<title>` is updated, but not the `<gphoto:timestamp>` 
even though this is clearly possible, as I did it through the Web UI.

Any ideas? Thanks...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-picasa-data-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-picasa-data-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to