Skip to content

Commit

Permalink
#5867 additional information in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller authored Sep 30, 2019
1 parent 1077b26 commit 5ca65ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1602,13 +1602,13 @@ Recalculate the UNF value of a dataset version, if it's missing, by supplying th
Datafile Integrity
~~~~~~~~~~~~~~~~~~

Recalculate the check sum value value of a datafile, by supplying the file's database id and an algorithm::
Recalculate the check sum value value of a datafile, by supplying the file's database id and an algorithm (Valid values for $ALGORITHM include MD5, SHA-1, SHA-256, and SHA-512)::

POST http://$SERVER/api/admin/computeDataFileHashValue/{fileId}/algorithm/{alg}
curl -H X-Dataverse-key:$API_TOKEN -X POST $SERVER_URL/api/admin/computeDataFileHashValue/{fileId}/algorithm/$ALGORITHM
Validate an existing check sum value against one newly calculated from the saved file
Validate an existing check sum value against one newly calculated from the saved file::

POST http://$SERVER/api/admin/validateDataFileHashValue/{fileId}
curl -H X-Dataverse-key:$API_TOKEN -X POST $SERVER_URL/api/admin/validateDataFileHashValue/{fileId}

These are only available to super users.

Expand Down

0 comments on commit 5ca65ca

Please sign in to comment.