Create Recipe Draft
create_recipe_draftSave an encrypted draft of a marketing mix recipe without publishing it. Use a draft_id to preserve work-in-progress edits, copy from a published recipe, or start from a template.
Instructions
Save an encrypted authoring draft without publishing, fitting or consuming an attempt. Supply a UUID draft_id and reuse it with identical content after an uncertain response. Start from get_recipe_draft_template for a new draft, or preserve the complete snapshot from get_recipe_draft when editing. When copying a published recipe, supply its source_revision_id from this study; the immutable link carries inherited influence through publication. Backend validates version and size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| draft_id | Yes | ||
| snapshot | Yes | Lossless editor authoring state. Backend is authoritative; preserve unknown nested fields. Source bytes are copied into encrypted draft storage (10 MB source limit); metadata limit is 5 MB. No local filesystem paths or executable code. | |
| study_id | Yes | ||
| source_revision_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||