Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

D toc

Warning

In Release 4.2, the wrangled dataset object was removed from the application interface. This API endpoint remains, as the internal platform objects have not been modified. For more information, see Changes to the Object Model.

Updated the primary input dataset for the specified wrangled dataset. Each wrangled dataset must have one and only one primary input dataset, which can be an imported or wrangled dataset.

This action performs a dataset swap for the source of a wrangled dataset, which can be done through the UI. See Flow View Page.

Tip

Tip: After you have created a job via API, you can use this API to swap out the source data for the job's dataset. In this manner, you can rapidly re-execute a pre-existing job using fresh data. See API JobGroups Create v3.

Version: v3

Required Permissions

D s api auth

Request

Request Type: PUT

Endpoint:

Code Block
/v3/wrangledDatasets/<id>/primaryInputDataset

where:

ParameterDescription
<id>Internal identifier for the wrangled dataset

Request URI - Example:

Code Block
/v3/wrangledDatasets/3/primaryInputDataset

 

Request Body - imported dataset:

Code Block
{
  "importedDataset": {
    "id": <id>
  }
}

Request Body - wrangled dataset:

Code Block
{
  "wrangledDataset": {
    "id": <id>
  }
}

Response

Response Status Code - Success: 200 - OK

Response Body Example:

Code Block
{
  "id": 50,
  "scriptId": 49,
  "flowId": 10,
  "flowNodeId": null,
  "deleted_at": null,
  "wrangled": true,
  "createdAt": "2017-02-21T16:53:15.619Z",
  "updatedAt": "2017-02-21T17:04:03.257Z",
  "activesampleId": 33,
  "createdBy": 1,
  "updatedBy": 1
}

Reference

For more information on these properties, see API WrangledDatasets Get PrimaryInputDataset v3.