[ckan-dev] Change package owner org with API

Funquist Tomas tomas.funquist at smhi.se
Tue Jun 9 11:09:39 UTC 2015


Hello!
We are trying to change the owner organization for some packages. We use the API and the package_owner_org_update method. When we execute eg.

curl -X POST -H 'Authorization: API_KEY' -d @ckan.json http://localhost:51545/api/3/action/package_owner_org_update

we get an internal server error.
The file ckan.json contains
{
  "id" : "00541f9e-80f2-44a1-9195-fb05f1d57281",
  "organization_id" : "1d7656c9-9dd5-47b8-a52e-58fb3a84621e"
}
All we get in the server log is

Error - <type 'exceptions.AssertionError'>: No revision is currently set for this Session

Can someone help us?

Regards
Tomas

Tomas Funquist
Systemutvecklare / system developer

SMHI / Swedish Meteorological and Hydrological Institute
ITd
SE - 601 76 NORRKÖPING
www.smhi.se<redir.aspx?C=e230b29b05e240c8bf09c562e1077314&URL=http%3a%2f%2fwww.smhi.se%2f>

E-post / Email: tomas.funquist at smhi.se<mailto:tomas.funquist at smhi.se>
Tel vx/ Phone: +46 (0)11 495 80 00
Mobiltelefon / Mobile phone: + 46 11 495 8625
Besöksadress / Street address: Folkborgsvägen 17

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150609/6372e2ac/attachment-0002.html>


More information about the ckan-dev mailing list