Revise Study Recipe
revise_study_recipeCreate an immutable revision of a study recipe with version checks, guarding against stale edits and optionally linking a same-study source revision.
Instructions
Create an immutable revision. Earlier versions inherit influence automatically; optional source_revision_id additionally links a same-study source recipe. Optional expected_content_hash guards effective inputs (409 requires a fresh preview). Supply the current recipe version; stale edits are rejected (412). Reload list_study_recipes, reconcile changes, then submit the current version; never overwrite blindly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| reason | Yes | ||
| recipe_id | Yes | ||
| specification | Yes | Backend recipe envelope. api_mmm requires request (a create_model body; model_type must be mmm, unknown config keys are rejected, channel_map and var_model_hash are rejected); model_snapshot requires model_hash and is review-only (launch refused, lineage unknown). Smart priors and VAR recipes are available only through the authoring-draft tools. Unknown fields are forwarded for backend validation. Every saved revision's read-time inspection carries lineage: the dataset origin recorded when the model was built, checked for availability now and never inferred after the fact. | |
| expected_version | Yes | ||
| source_revision_id | No | ||
| expected_content_hash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||