Newer Version Available

This content describes an older version of this product. View Latest

Recipe Resource

Returns, updates, or deletes a Data Prep recipe.
Resource URL
1/wave/recipes/<id>
Formats
JSON
Available Version
38.0
HTTP Methods
DELETE GET PATCH PUT
Run a Recipe
To run a Data Prep recipe, use the Dataflow Jobs Resource API. For examples of how to start and stop recipes, see Start and Stop a Dataflow Job or Recipe.
Schedule a Recipe
To schedule a recipe, use the Schedule Resource API. For examples of how to schedule recipes, see Schedule Dataflows, Recipes, and Data Syncs.
GET Request Parameters
Parameter Name Type Description Required or Optional Available Version
format Connect​Recipe​Format​Type​Enum Specifies the format of the returned recipe. Valid values are:
  • R2 (Data Prep Classic)
  • R3 (Data Prep)
Required for Data Prep recipes, Optional for Data Prep Classic recipes. 49.0
historyId Id Use the history ID to request a specific recipe version. Optional 51.0

The following REST URL shows how to use the format request parameter to return a Data Prep recipe via the GET request.

1/wave/recipes/<05vS7000000xxxxxxx>?format=R3

With API version 49.0 and higher, the format request parameter is required for recipes created in the Data Prep format. For recipes created in the Data Prep Classic format, the format request parameter isn’t needed. If you want to up-convert the Data Prep Classic recipe format to the Data Prep recipe format, use the format request parameter set to R3.

Note

GET Response Body (RecipeInputRepresentation)
Property Name Type Description Filter Group and Version Available Version
conversion​Details Recipe​Validation​Detail​Representation[] The list of upconversion details when converting the recipe to R3. Small, 51.0 51.0
dataflow​Last​Update Date The date of the last recipe dataflow update. Small, 38.0 38.0
dataset Asset​Reference​Representation The target dataset. Small, 38.0 38.0
file​Url String The URL to get the recipe's JSON file content (see /wave/recipes/<recipeId>/file for more information). Small, 38.0 38.0
format Connect​Recipe​Format​Type​Enum Specifies the format of the returned recipe. Valid values are:
  • R2 (Data Prep Classic)
  • R3 (Data Prep)
Small, 48.0 48.0
histories​Url String The URL for the version histories associated with the recipe. Small, 51.0 51.0
licenseType Connect​Analytics​License​Type​Enum The Tableau CRM license types. Valid values are:
  • EinsteinAnalytics
  • Sonic
Optional 51.0
next​Scheduled​Date Date The next scheduled run of this recipe. Small, 47.0 47.0
publishing​Target Connect​Recipe​Publishing​Target​Enum The target format or system to publish the recipe to. Valid values are:
  • Dataset (Publish to Dataset)
Small, 42.0 42.0
recipe​Definition Recipe​Definition​Representation The recipe definition for the Data Prep recipe only. This property isn’t supported for Data Prep Classic recipes. Small, 49.0 49.0
row​Level​Security​Predicate String The security predicate of the target dataset. Small, 38.0 38.0
schedule String The schedule cron expression for the current dataflow. Small, 38.0 38.0
schedule​Type Connect​Recipe​Schedule​Type​Enum The schedule type of the recipe. Valid values are:
  • Event​Driven
  • Time​Driven
Small, 49.0 49.0
source​Dataflow String The dataflow used to upconvert or revert the current recipe. Small, v51.0 51.0
source​Recipe String The recipe used to upconvert or revert the current recipe. Small, 50.0 50.0
target​Dataflow​Id String The target dataflow ID. Small, 42.0 42.0
validation​Details Recipe​Validation​Detail​Representation[] The collection of validation details for a Data Prep recipe. This property isn’t supported for Data Prep Classic recipes. Small, 50.0 50.0
PATCH Request Body
Property Name Type Description Required or Optional Available Version
dataflow​Definition String The recipe's definition. Optional 38.0
execution​Engine Connect​Recipe​Execution​Engine​Enum The recipe's execution engine. Valid values are:
  • V1
  • V2
Optional 41.0
file​Content String The recipe's JSON file content (see /wave/recipes/<recipeId>/file for more information). This property is internal to the recipe UI and is available for debugging and reference purposes only. This property is valid only for Data Prep Classic recipes. Required for POST and PATCH 38.0
folder Asset​Reference​Input​Representation The Tableau CRM app the recipe is published in. Required when dataflow​Definition is present 38.0
format Connect​Recipe​Format​Type​Enum Specifies the format of the recipe. Valid values are:
  • R2 (Data Prep Classic)
  • R3 (Data Prep)
Optional 48.0
history​Label String A history label to tag the version of the recipe. Optional 51.0
label String A short label for the recipe. Required for POST, Optional for PATCH 38.0
license​Attributes Licenses​Attributes​Representation The Tableau CRM license type and other properties. Optional 51.0
publishing​Target Connect​Recipe​Publishing​Target​Enum The target format or system to publish the recipe to. Valid values are:
  • Dataset (Publish to Dataset)
Optional 42.0
recipe​Definition Recipe​Definition​Input​Representation The recipe definition for the Data Prep recipe only. This property isn’t supported for Data Prep Classic recipes. Optional 49.0
row​Level​Security​Predicate String The security predicate of the target dataset. Optional 38.0
schedule String The recipe's schedule dataflow run. Optional 38.0
source​Dataflow Asset​Reference​Input​Representation The source dataflow asset used to upconvert to the recipe to R3. Optional 51.0

The following JSON shows how to update an existing recipe.

1{
2  "label" : "My R3 Recipe",
3  "format" : "R3",
4  "publishingTarget" : "Dataset",
5  "recipeDefinition" : {
6    "nodes" : { array of node objects },
7    "ui" : { ui metadata object },
8    "version" : "1.0"
9  }              
10}

If the recipe was created in the Data Prep Classic format, then is retrieved in the Data Prep format, a PATCH request with the Data Prep format up-converts the recipe permanently to the Data Prep format.

Note

PATCH Response Body (RecipeRepresentation)
Property Name Type Description Filter Group and Version Available Version
conversion​Details Recipe​Validation​Detail​Representation[] The list of upconversion details when converting the recipe to R3. Small, 51.0 51.0
dataflow​Last​Update Date The date of the last recipe dataflow update. Small, 38.0 38.0
dataset Asset​Reference​Representation The target dataset. Small, 38.0 38.0
file​Url String The URL to get the recipe's JSON file content (see /wave/recipes/<recipeId>/file for more information). Small, 38.0 38.0
format Connect​Recipe​Format​Type​Enum Specifies the format of the returned recipe. Valid values are:
  • R2 (Data Prep Classic)
  • R3 (Data Prep)
Small, 48.0 48.0
histories​Url String The URL for the version histories associated with the recipe. Small, 51.0 51.0
licenseType Connect​Analytics​License​Type​Enum The Tableau CRM license types. Valid values are:
  • EinsteinAnalytics
  • Sonic
Optional 51.0
next​Scheduled​Date Date The next scheduled run of this recipe. Small, 47.0 47.0
publishing​Target Connect​Recipe​Publishing​Target​Enum The target format or system to publish the recipe to. Valid values are:
  • Dataset (Publish to Dataset)
Small, 42.0 42.0
recipe​Definition Recipe​Definition​Representation The recipe definition for the Data Prep recipe only. This property isn’t supported for Data Prep Classic recipes. Small, 49.0 49.0
row​Level​Security​Predicate String The security predicate of the target dataset. Small, 38.0 38.0
schedule String The schedule cron expression for the current dataflow. Small, 38.0 38.0
schedule​Type Connect​Recipe​Schedule​Type​Enum The schedule type of the recipe. Valid values are:
  • Event​Driven
  • Time​Driven
Small, 49.0 49.0
source​Dataflow String The dataflow used to upconvert or revert the current recipe. Small, v51.0 51.0
source​Recipe String The recipe used to upconvert or revert the current recipe. Small, 50.0 50.0
target​Dataflow​Id String The target dataflow ID. Small, 42.0 42.0
validation​Details Recipe​Validation​Detail​Representation[] The collection of validation details for a Data Prep recipe. This property isn’t supported for Data Prep Classic recipes. Small, 50.0 50.0
PUT Request Body (AssetRevertHistoryInputRepresentation)
Use the PUT API request to revert to a previous historical version.
Property Name Type Description Required or Optional Available Version
history​Id String The required source history id for this asset to revert to. Required 42.0
history​Label String The history label to tag the revert change with. Optional 42.0
The following JSON shows the revert request for a recipe version.
1{
2                "historyId" : "0RmRM000000xxxxxxx"
3                }
PUT Response Body (RecipeRepresentation)

RecipeRepresentation inherits properties from the abstract BaseWaveAssetRepresentation. These base properties appear alongside RecipeRepresentation specific properties in the following table.

Property Name Type Description Filter Group and Version Available Version
conversion​Details Recipe​Validation​Detail​Representation[] The list of upconversion details when converting the recipe to R3. Small, 51.0 51.0
dataflow​Last​Update Date The date of the last recipe dataflow update. Small, 38.0 38.0
dataset Asset​Reference​Representation The target dataset. Small, 38.0 38.0
file​Url String The URL to get the recipe's JSON file content (see /wave/recipes/<recipeId>/file for more information). Small, 38.0 38.0
format Connect​Recipe​Format​Type​Enum Specifies the format of the returned recipe. Valid values are:
  • R2 (Data Prep Classic)
  • R3 (Data Prep)
Small, 48.0 48.0
histories​Url String The URL for the version histories associated with the recipe. Small, 51.0 51.0
licenseType Connect​Analytics​License​Type​Enum The Tableau CRM license types. Valid values are:
  • EinsteinAnalytics
  • Sonic
Optional 51.0
next​Scheduled​Date Date The next scheduled run of this recipe. Small, 47.0 47.0
publishing​Target Connect​Recipe​Publishing​Target​Enum The target format or system to publish the recipe to. Valid values are:
  • Dataset (Publish to Dataset)
Small, 42.0 42.0
recipe​Definition Recipe​Definition​Representation The recipe definition for the Data Prep recipe only. This property isn’t supported for Data Prep Classic recipes. Small, 49.0 49.0
row​Level​Security​Predicate String The security predicate of the target dataset. Small, 38.0 38.0
schedule String The schedule cron expression for the current dataflow. Small, 38.0 38.0
schedule​Type Connect​Recipe​Schedule​Type​Enum The schedule type of the recipe. Valid values are:
  • Event​Driven
  • Time​Driven
Small, 49.0 49.0
source​Dataflow String The dataflow used to upconvert or revert the current recipe. Small, v51.0 51.0
source​Recipe String The recipe used to upconvert or revert the current recipe. Small, 50.0 50.0
target​Dataflow​Id String The target dataflow ID. Small, 42.0 42.0
validation​Details Recipe​Validation​Detail​Representation[] The collection of validation details for a Data Prep recipe. This property isn’t supported for Data Prep Classic recipes. Small, 50.0 50.0