Skip to content

Commit

Permalink
Update native-api.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
djbrooke committed Sep 29, 2021
1 parent 012517c commit 2e0ba37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2812,15 +2812,14 @@ To create a harvesting set you must supply a JSON file that contains the followi
- Definition: A search query to select the datasets to be harvested. For example, a query containing authorName:YYY would include all datasets where ‘YYY’ is the authorName.
- Description: Text that describes the harvesting set. The description appears in the Manage Harvesting Sets dashboard and in API responses. This field is optional.
An example JSON file would look like this:
An example JSON file would look like this::
{
"name":"ffAuthor",
"definition":"authorName:Finch, Fiona",
"description":"Fiona Finch’s Datasets"
}
.. note:: See :ref:`curl-examples-and-environment-variables` if you are unfamiliar with the use of export below.
.. code-block:: bash
Expand Down Expand Up @@ -2848,14 +2847,13 @@ To modify a harvesting set, you must supply a JSON file that contains one or bot
Note that you may not modify the name of an existing harvesting set.
An example JSON file would look like this:
An example JSON file would look like this::
{
"definition":"authorName:Finch, Fiona AND subject:trees",
"description":"Fiona Finch’s Datasets with subject of trees"
}
.. note:: See :ref:`curl-examples-and-environment-variables` if you are unfamiliar with the use of export below.
.. code-block:: bash
Expand Down

0 comments on commit 2e0ba37

Please sign in to comment.