You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the metadata and instructions of a template with a given ``id``.
1646
+
1647
+
To update the template, you must send a JSON file. Your JSON file might look like :download:`template-update-metadata.json <../_static/api/template-update-metadata.json>` which you would send to the Dataverse installation like this:
curl -H "X-Dataverse-key: $API_TOKEN" -X PUT "$SERVER_URL/api/dataverses/{ID}/metadata" --upload-file template-update-metadata.json
1656
+
1657
+
The fully expanded example above (without environment variables) looks like this:
1658
+
1659
+
.. code-block:: bash
1660
+
1661
+
curl -H "X-Dataverse-key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X PUT "https://demo.dataverse.org/api/dataverses/1/metadata" --upload-file template-update-metadata.json
1662
+
1663
+
Update the License or Terms Of Use of a Template
1664
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665
+
1666
+
Updates the license or custom terms of use of a template with a given ``id``.
1667
+
1668
+
To update the template, you must send a JSON file containing either the name of an active license or custom terms of use. Your JSON file might look like :download:`template-update-license.json <../_static/api/template-update-license.json>` or :download:`template-update-terms.json <../_static/api/template-update-terms.json>` which you would send to the Dataverse installation like this:
curl -H "X-Dataverse-key: $API_TOKEN" -X PUT "$SERVER_URL/api/dataverses/{ID}/licenseTerms" --upload-file template-update-license.json
1677
+
1678
+
The fully expanded example above (without environment variables) looks like this:
1679
+
1680
+
.. code-block:: bash
1681
+
1682
+
curl -H "X-Dataverse-key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X PUT "https://demo.dataverse.org/api/dataverses/1/licenseTerms" --upload-file template-update-license.json
1683
+
1684
+
Update the Terms Of Access of a Template
1685
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686
+
1687
+
Updates the terms of access of a template with a given ``id``.
1688
+
1689
+
To update the template, you must send a JSON file containing either the name of an active license or custom terms of use. Your JSON file might look like :download:`template-update-access.json <../_static/api/template-update-access.json>` which you would send to the Dataverse installation like this:
0 commit comments