presentations

Change blocks on several slides

Change blocks on many slides in one step (and one version in the history). "edits" is a list of {"slide_id", "add", "update", "delete", "at_bottom", "base_version"}; on its slide each item adds new blocks ("add": [{"type", "props"}], on top or with "at_bottom": true under the others), changes the given props of blocks ("update": [{"id" | "ids": [...] | "inside": <card block id>, "props"}]) and deletes blocks ("delete": [ids]). Nothing is changed when one item is wrong (or its slide changed meanwhile). Returns the changed slides.

post/api/v1/presentations/{slug}/blocks

Request

  • Base URL: https://easeweb.host
  • URL: https://easeweb.host/api/v1/presentations/{slug}/blocks
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sessionid

Path parameters

slugstring required

The presentation's slug (its address: /movie/<slug>/).

Request body

editsobject[] required

Up to 100 items: [{"slide_id", "add"?, "update"?, "delete"?, "at_bottom"?, "base_version"?}].

response'brief' | 'full'

"brief" (default): only the ids, numbers and types of the slides and blocks; "full": every prop of every block too.

Response

OK

object required

Changes

No recorded changes to this operation across all 1 revision of this API.