Hi,

When looking for a way to extend task lease (or return task before lease 
expiry) from pull-queue using REST queries outside of GAE app, I found that 
`update` and `patch` requests needs some additional privileges besides 
those that are described at documentation.

Short descriptions at 
https://developers.google.com/appengine/docs/python/taskqueue/rest/ says, 
that `update` is for "Update the duration of a task lease",  and `patch` is 
for "Update tasks that are leased out of a TaskQueue". Both methods have 
`newLeaseSeconds` parameter, but `update` needs full task resource in body, 
so `patch` is preferred for updating lease time. Description for both 
methods says that `https://www.googleapis.com/auth/taskqueue` or `t
askqueue.consumer` scope may be used to authorize the request (and don't 
says that user should be in `write_email` or `user_email` ACL), but when I 
try to perform `patch` or `update` call, I got 403 response with "you are 
not allowed to make this api call" description. (At the same time I can 
execute `lease` and `delete` without any errors).

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

Reply via email to