Skip to content

Commit

Permalink
add key in header api
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineREKIK committed Jul 7, 2023
1 parent 4bad996 commit 1793b33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4549,12 +4549,10 @@ A curl example listing objects
export PUBLISHED_STATES=Unpublished
export PER_PAGE=10
curl "$SERVER_URL/api/mydata/retrieve?key=$API_TOKEN&role_ids=$ROLE_IDS&dvobject_types=$DVOBJECT_TYPES&published_states=$PUBLISHED_STATES&per_page=$PER_PAGE"
curl -H "X-Dataverse-key:$API_TOKEN" "$SERVER_URL/api/mydata/retrieve?role_ids=$ROLE_IDS&dvobject_types=$DVOBJECT_TYPES&published_states=$PUBLISHED_STATES&per_page=$PER_PAGE"
Parameters:
``key`` Is the user token, for this API is must not be passed in the header.
``role_id`` Roles are customizable. Standard roles include:
- ``1`` = Admin
Expand Down

0 comments on commit 1793b33

Please sign in to comment.