[ckan-dev] Set resource license via API

Stefan Oderbolz odi at metaodi.ch
Thu Oct 31 18:58:53 UTC 2019


Hi andy

The license is a field on the dataset, not on the resource. So you can set
it via the API - using the package_create/package_update etc. methods.

As each resource belongs to one dataset, you can think of this as if the
resource "inherits" the license from the dataset.

-Stefan

On Thu, Oct 31, 2019, 19:07 andy <aborruso at gmail.com> wrote:

> Hi,
> is it possible to set resource license via API?
>
> Looking at the documentation it seems no
> https://docs.ckan.org/en/2.8/api/#ckan.logic.action.create.resource_create
> ?
>
> Am I wrong?
>
> Thank you
>
> --
> ___________________
>
> Andrea Borruso
> website: https://medium.com/tantotanto
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> ___________________
>
> "cercare e saper riconoscere chi e cosa,
>  in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20191031/9fa12c27/attachment-0002.html>


More information about the ckan-dev mailing list