Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on February 15, 2018 10:26PM
Likes: 0
Replies: 5
Hi,
I would like to add a new folder to the recipe's output, bases on the documentaion there is just a get method for recipe inputs/outputs.
Is there any way to set it?
Thanks
classdataikuapi.dss.recipe.DSSRecipeDefinitionAndPayload(data)
Definition for a recipe, that is, the recipe definition itself and its payload
get_recipe_raw_definition()
get_recipe_inputs()
get_recipe_outputs()
get_recipe_params()
get_payload()
get_json_payload()
set_payload(payload)
set_json_payload(payload)
Hi,
You can use the set_definition_and_payload method of the class dataikuapi.dss.recipe.DSSRecipe to update an existing recipe. This is highlighted in https://doc.dataiku.com/dss/latest/api/public/client-python/reference.html#dataikuapi.dss.recipe.DSSRecipe.set_definition_and_payload.
Otherwise, if you want to create a new recipe, you will need a dataikuapi.dss.recipe.DSSRecipeCreator class (see https://doc.dataiku.com/dss/latest/api/public/client-python/reference.html#dataikuapi.dss.recipe.DSSRecipeCreator)
Cheers,
Alex