Skip to content

Commit

Permalink
Merge pull request #4 from IQSS/develop
Browse files Browse the repository at this point in the history
Merge upstream to 2043-split-gb-table
  • Loading branch information
mdmADA authored May 23, 2019
2 parents 54a204e + f699a85 commit f643aff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ Create a Dataverse
~~~~~~~~~~~~~~~~~~

Generates a new dataverse under ``$id``. Expects a JSON content describing the dataverse, as in the example below.
If ``$id`` is omitted, a root dataverse is created. ``$id`` can either be a dataverse id (long) or a dataverse alias (more robust). ::
If ``$id`` is omitted, a root dataverse is created. ``$id`` can either be a dataverse id (long) or a dataverse alias (more robust). In the example below, "root" is the id, which means that the dataverse will be created as a child of the root dataverse::

POST http://$SERVER/api/dataverses/$id?key=$apiKey
``export id=root`
``curl -H "X-Dataverse-key:$API_TOKEN" -X POST $SERVER_URL/api/dataverses/$id --upload-file dataverse-complete.json``

Download the :download:`JSON example <../_static/api/dataverse-complete.json>` file and modified to create dataverses to suit your needs. The fields ``name``, ``alias``, and ``dataverseContacts`` are required. The controlled vocabulary for ``dataverseType`` is

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE variablemetadata
ADD COLUMN postquestion text;
ADD COLUMN IF NOT EXISTS postquestion text;

0 comments on commit f643aff

Please sign in to comment.