Skip to content

API Endpoints: Update Metadata For a Dataset / Edit Dataset Metadata #9348

@transfluxus

Description

@transfluxus

What steps does it take to reproduce the issue?
It needs a published dataset.
The 2 endpoints for updating the metadata fail:
/api/datasets/:persistentId/versions/:latest?persistentId=$PERSISTENT_IDENTIFIER results in a
400, {"status":"ERROR","message":"Only the :draft version can be updated"}

/api/datasets/:persistentId/editMetadata/?persistentId=$PERSISTENT_IDENTIFIER
OR
api/datasets/:persistentId/editMetadata/?persistentId=doi:10.5072/FK2/BCCP9Z&replace=true
result in responses with status code 500.

  • When does this issue occur?
    All the time, for published datasets, but it the endpoint for drafts works

  • Which page(s) does it occurs on?
    demo.dataverse.org

  • What happens?

  • To whom does it occur (all users, curators, superusers)?
    me the developer

  • What did you expect to happen?
    A 200, with updated metadata

Which version of Dataverse are you using?
v. 5.12.1 build 1122-cf90431

Any related open or closed issues to this bug report?

Screenshots:

No matter the issue, screenshots are always welcome.

To add a screenshot, please use one of the following formats and/or methods described here:

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