presentations

Create a presentation

Create a new presentation of yours, empty or complete in one call. "slides" is a list of {"name", "name_tr", "w", "h", "bg", "fit", "background", "objects": [blocks]}; blocks may link to each other's slides with {"kind": "slide", "slide_number": N} (1-based, in this list). Returns the new presentation with the ids of its slides and blocks (every prop too with "response": "full"). Every presentation is in all the languages of the site (ru, en) at once: write the texts in "lang" and give the other languages right away -- "title_tr", "name_tr" of every slide and "tr" in the props of every text, shape and button block ({"en": "<html>"}); the layout is shared. The answer lists what is still "missing_translations".

post/api/v1/presentations

Request

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

Request body

titlestring required

Title (at most 100 characters).

lang'ru' | 'en'

The language "title", slide names and blocks' "html" are written in (default: the one most of the words of the title, the slide names and the texts are in).

title_trobject

The title in the other languages of the site: {"en": "..."}.

descriptionstring

Description shown on the presentation page (optional).

theme'light' | 'paper' | 'ocean' | 'coral' | 'dark' | 'forest'

Default colours of the slides and of new blocks.

response'brief' | 'full'

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

projectstring

Slug of one of your projects to create the presentation in (at its end); its blocks may then lead to the slides of the other presentations of that project.

access'open' | 'public' | 'private'

Who sees it (default "private": only you, until you publish it; "public": everybody reads it; "open": every signed-in person edits it too).

Response

OK

object required

Changes

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