Renaming recipes via Dataiku API

SanderVW
SanderVW Registered Posts: 53 ✭✭✭✭

Hello, I am trying to rename some recipes via the API (as opposed to by hand as we want to rename quite a lot).

This is the code I am trying to run:
project = client.get_project(project_key)

recipe_object = project.get_recipe(recipe_name)

recipe_object.rename('the new name')

Trying to run this gives the following error however:
AttributeError: 'DSSRecipe' object has no attribute 'rename'

I'm confused to see this as the documentation states there actually is supposed to be this functionality. Is there something wrong with my code? The error does seem to indicate that I'm using the correct object class. Or has this function been removed? If the latter, is there an updated documentation of the API available anywhere?

Best Answer

  • Zach
    Zach Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 153 Dataiker
    Answer ✓

    Hi @SanderVW,

    The rename method was added in DSS 12.5.0, as mentioned in our release notes:

    Added APIs to rename datasets and recipes

    Are you using an older DSS version?

Answers

Setup Info
    Tags
      Help me…