Skip to content

Support applying template id in API of dataset creation and persist dataset–template associations #12132

@ChengShi-1

Description

@ChengShi-1

Overview of the Feature Request
Extend the native API (POST /api/dataverses/{identifier}/datasets) so callers can specify a template, have that template applied to the initial DatasetVersion. If a dataset is created with a template, then the id of the template should be included in the object sent to the createDataset endpoint.

What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)
api users

What inspired the request?
In template management page, delete template action is unclear to users

What existing behavior do you want changed?
Let POST /api/dataverses/{identifier}/datasets accept a template (e.g., templateId query param or JSON field)

Any brand new behavior do you want to add to Dataverse?
API changes to allow the closer connection between template management and create dataset

Any open or closed issues related to this feature request?
#11789

Are you thinking about creating a pull request for this feature?
Help is always welcome, is this feature something you or your organization plan to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    GREI Re-archIssues related to the GREI Dataverse rearchitectureSPAThese changes are required for the Dataverse SPASPA.Q4.2025.1Create/Edit Template FeatureType: Featurea feature request

    Type

    No type

    Projects

    Status

    SPRINT READY

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions