canvas-actions

Add Canvas Animations

Changed on

Add preset animations in one atomic batch (order preserved).

created_ids carries the new animation ids in entry order. Presets and params are validated by the tool host; a rejected entry fails the whole batch with the typed invalid_animation error and nothing applied.

post/canvases/{canvas_ref}/animations

Request

  • Base URL
    https://api.moda.app/v1
  • URL
    https://api.moda.app/v1/canvases/{canvas_ref}/animations
  • Auth
    HTTP bearer

Path parameters

canvas_refstring required

Headers

Moda-Version'2026-04-12' | '2026-05-01'
Example:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Request body

animationsobject[] required

Animation entries (nodeId + preset required; optional trigger, durationMs, easing, params). The batch is atomic: one rejected entry applies nothing.

expected_revisionstring nullable

Optional (advisory) — adds are additive.

idempotency_keystring nullable

Response

Successful Response

object required

Changes