Skip to main content
PATCH
Change text, a shape or a picture

Authorizations

Authorization
string
header
required

An API key from Settings › API, sent as Authorization: Bearer ptr_…. Shown once when made; only a hash is stored.

Path Parameters

id
string
required

The deck's id

Minimum string length: 1
index
integer
required

The slide step's index

Required range: 1 <= x <= 9007199254740991
kind
enum<string>
required
Available options:
text,
shape,
image
element
integer
required

The element's index in its list, counting from 0

Required range: 0 <= x <= 9007199254740991

Body

application/json
text
object

For a text box: the properties to change

shape
object

For a shape: the properties to change

image
object

For an image: the properties to change

revision
string<date-time>

The deck's revision you read (from get_deck or the last write). Sent, the write lands only if nobody changed the deck since; left out, it goes through regardless

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$

Response

OK

ok
boolean
required
ready
boolean
required

Every poll passes the readiness check, so a room can start

problems
object[]
required

What stops it, by step; empty when ready

warnings
object[]
required

Placements that will not read well on stage, by step: a card smaller than a fifth of the slide either way, or a card or text box over another card or text box. They do not stop a room; fix them anyway

revision
string
required

The deck's revision after this write; send it as revision with the next write to be sure nobody changed the deck in between