presentations

Find and replace

Find and replace words in a whole presentation you may edit, in one step: the texts of text, shape and button blocks (in every language by default, or only "langs"), the slide names, and with "in_code": true the code of code blocks. Formatting stays (the words are replaced inside it; a phrase split by formatting, like half of it bold, is not found). The number of an automatic slide reference ({{slide:N}}) is not text and is not found: it changes by itself when slides move; to point a reference to another slide, write the block's html with a new {{slide:N}}. "regex": true makes "find" a Python regular expression ("replace" may use \1). "dry_run": true only counts. Returns how many were replaced on which slides.

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

Request

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

Path parameters

slugstring required

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

Request body

findstring required

What to find (at most 500 characters).

replacestring required

What to put instead (may be empty).

regexboolean

"find" is a regular expression (default: plain text).

match_caseboolean

Case matters (default: true).

langsstring[]

Only these languages of the texts (default: all).

in_namesboolean

The names of the slides too (default: true).

in_codeboolean

The code of code blocks too (default: false).

from_numberinteger

Only the slides from this number on (1-based).

to_numberinteger

Only the slides up to this number (inclusive).

slide_idsinteger[]

Only these slides (ids).

dry_runboolean

Only count, change nothing.

base_versionstring

Optional: the "version" of the presentation as you read it; refused when it changed meanwhile.

Response

OK

object required

Changes

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