Magidoc

RecipeSetupInput
Input Object

Setup payload shared by createRecipe and updateRecipeSetup. title and workspaceId are always required. The projectId, aiData, aiPromptData, and files fields only take effect on createRecipe; updateRecipeSetup ignores them.

Fields

#

aiData

createRecipe only: AI-generated rows used to build the initial recipe structure. Do not combine with projectId.

aiPromptData

createRecipe only: metadata about the AI prompt used to generate aiData.

closed

Archive flag: true archives the recipe, false keeps it active.

dataFieldsAnswers

JSON-encoded string of data field answers, decoded server-side.

description

files

createRecipe only: ids of already-uploaded files to attach to the new recipe.

projectId

createRecipe only: copy the full structure of this project (must be visible to the caller) into the new recipe. Do not combine with aiData.

status

Internal lifecycle integer. Recipes with status -1 are hidden from listings; normally omit this field.

tags

title

Non-null

workspaceId

Non-null

Target workspace. The caller needs the admin or recipe_creator role in it (createRecipe), or an assignable workspace when moving via updateRecipeSetup.