Skip to content

Commit

Permalink
IQSS#6083 update examples for 'List Role Assignments in a Dataverse' …
Browse files Browse the repository at this point in the history
…section of Native API.
  • Loading branch information
pkiraly committed Jan 24, 2020
1 parent 2dd16ec commit 84efa89
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,18 @@ List all the role assignments at the given dataverse::
.. code-block:: bash
export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export SERVER_URL=https://demo.dataverse.org
export id=root
curl -H X-Dataverse-key:$API_TOKEN $SERVER/api/dataverses/$id/assignments
The fully expanded example above (without environment variables) looks like this:
.. code-block:: bash
curl -H X-Dataverse-key:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx https://demo.dataverse.org/api/dataverses/root/assignments
Assign Default Role to User Creating a Dataset in a Dataverse
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 84efa89

Please sign in to comment.