-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @jonsken, to make RESSOURCE-ID public:
To make RESSOURCE-ID private:
You shall check the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @jonsken, to make RESSOURCE-ID public:
To make RESSOURCE-ID private:
You shall check the |
Beta Was this translation helpful? Give feedback.
Hi @jonsken,
Here are some examples with curl:
to make RESSOURCE-ID public:
curl -u admin:PASS --location --request PUT 'https://stable.demo.geonode.org/api/v2/resources/RESSOURCE-ID/permissions' --header 'Content-Type: application/json' --data-raw '{"groups": [],"organizations": [],"users": [{"id": -1,"permissions": "view"}]}'
To make RESSOURCE-ID private:
curl -u admin:PASS --location --request PUT 'https://stable.demo.geonode.org/api/v2/resources/RESSOURCE-ID/permissions' --header 'Content-Type: application/json' --data-raw '{"groups": [],"organizations": [],"users": [{"id": -1,"permissions": ""}]}'
You shall check the
user.id
you would like to grant permissions to.