Skip to content

Guides - Missing quotation marks in curl command for creating dataset via API #6563

@BPeuch

Description

@BPeuch

Version: 4.18.1

Hello everybody,
After @youssefOuahalou brought up an error, @pdurbin found out that quotation marks are missing in the curl commands in this section of the API Guide. Otherwise, bash cannot parse the URLs properly (and the ampersand (&) in the first of the two paths confuses it).

It should be:

curl -H "X-Dataverse-key: [admin token]" -X POST "http://[dataverse URL]/datasets/:import?pid=[digital object identifier]&release=[yes or no]" --upload-file "[folder path]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions