Update Mockup Animation
update_mockup_animationReplaces a complete saved mockup animation state. Hosted edits require a fresh same-target read receipt. The server sorts keyframes, derives legacy primary-device fields, validates model/finish and motion bounds, and reports ignored unknown fields. Whole-state replacement is the supported save contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Complete MockupProjectState from get_mockup_animation. devices[] is canonical when present (1–6 independent devices); preserve all devices (the server mirrors devices[0] into the legacy fields). Read get_editing_reference(feature: mockups) for the full contract, including names, timing, transitions, keyframe lidOpen, audio and presenter overlay. | |
| projectId | Yes | ||
| variantId | Yes | The variantId returned by get_mockup_animation. | |
| readReceipt | No | Hosted connector only: pass the readReceipt returned by the immediately preceding get_mockup_animation call. | |
| fitMotionToDevice | No | When a device's model changes kind (phone, duo, tablet, laptop) and its keyframes are still an unmodified scene preset, re-fit them to the new model like create_mockup_animation does (smaller travel/zoom on iPad/MacBook, laptop lid choreography). Authored keyframes are never changed; the result warns instead. false only reports. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |