Renaming recipes via Dataiku API

SanderVW Registered Posts: 41 ✭✭✭✭

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


Setup Info
      Help me…