Skip to content

File: Add includeDeaccessioned parameter to the GetFile #321

@ChengShi-1

Description

@ChengShi-1

In order to correctly get the file which is deaccessioned, we need include the includeDeaccessioned, so even though the dataset is deaccessioned, by applying includeDeaccessioned = true to the GETFile endpoint, the owner could get right response to access the deaccessioned file.

API Test Steps:

  • Create a dataset and upload a file to the dataset
  • publish dataset (1.0 version) so the dataset v1 should open to public
  • deaccession the dataset version 1.0
  • dataset admin or user account with edit permission
  • GET .../api/v1/files/10/versions/1.0?includeDeaccessioned=true, got 200 response

related to IQSS/dataverse#11465 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions