Skip to content

Updating a dataset with Native API is bugged #3899

@omaralsoudanii

Description

@omaralsoudanii

PUT http://$SERVER/api/datasets/$id/versions/:draft?key=$apiKey

where $id = database id of the dataset,
Using v. 4.2.3 , I add a dataset and then try to update it with the same json structure as per the documentation here

Updates the current draft version of dataset $id. If the dataset does not have an draft version - e.g. when its most recent version is published, a new draft version is created. The invariant is - after a successful call to this command, the dataset has a DRAFT version with the passed data. The request body is a dataset version, in json format.

which can be found here : http://guides.dataverse.org/en/4.2/api/native-api.html
However this returns error 404 not found ,
If this is due to incorrect JSON format ( note that i used the format for adding a dataset and it worked ) what's the format for editing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions