File tree Expand file tree Collapse file tree
doc/sphinx-guides/source/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3499,13 +3499,13 @@ This API endpoint is for superusers only.
34993499 export TYPE=software
35003500 export JSON=' ["codeMeta20"]'
35013501
3502- curl -H " X-Dataverse-key:$API_TOKEN " -H " Content-Type: application/json" " $SERVER_URL /api/datasets/datasetTypes/$TYPE " -X POST -d $JSON
3502+ curl -H " X-Dataverse-key:$API_TOKEN " -H " Content-Type: application/json" " $SERVER_URL /api/datasets/datasetTypes/$TYPE " -X PUT -d $JSON
35033503
35043504The fully expanded example above (without environment variables) looks like this:
35053505
35063506.. code-block:: bash
35073507
3508- curl -H " X-Dataverse-key:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H " Content-Type: application/json" " https://demo.dataverse.org/api/datasets/datasetTypes/software" -X POST -d ' ["codeMeta20"]'
3508+ curl -H " X-Dataverse-key:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H " Content-Type: application/json" " https://demo.dataverse.org/api/datasets/datasetTypes/software" -X PUT -d ' ["codeMeta20"]'
35093509
35103510To update the blocks that are linked, send an array with those blocks.
35113511
You can’t perform that action at this time.
0 commit comments