Skip to content

Commit ce03b30

Browse files
committed
fix typo in docs (PUT vs. POST) #10519
1 parent 907383e commit ce03b30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/sphinx-guides/source/api/native-api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
35043504
The 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
35103510
To update the blocks that are linked, send an array with those blocks.
35113511

0 commit comments

Comments
 (0)