Re-record demo with updated presentation
POST
/api/v1/demos/{id}/restyle
Uses the existing action script and records the demo again with a new presentation config. This is useful for changing background, mockup, cursor, click effects, fade, or template metadata without re-planning the whole demo.
Authentication
Bearer Token API Key (cookie: better-auth.session_token)
Path Parameters
id
string
required
path
Request Body
application/jsonpresentation
object
REQUIRED
background
string | object | object
Any of:
Option 1string
Option 2
from
string
REQUIRED
to
string
REQUIRED
angle
number
Option 3
imageUrl
string (uri)
REQUIRED
Max length
2048mockup
string
Values
macos-light macos-dark minimal nonezoom
object
enabled
boolean
REQUIRED
intensity
number
Min
1Max 3transitionMs
number
Min
100Max 2000padding
number
Min
0Max 0.3cursor
object
style
string
Values
dot arrow crosshair circle nonecolor
string
Max length
50size
number
Min
8Max 64clickEffect
object
style
string
Values
pulse ripple glow nonecolor
string
Max length
50scale
number
Min
0.2Max 3fade
object
inMs
number
Min
0Max 3000outMs
number
Min
0Max 3000color
string
Values
black whitewindowAnimation
object
intro
boolean
outro
boolean
introDurationMs
number
Min
200Max 2000outroDurationMs
number
Min
200Max 2000recordingTemplate
object
id
string
REQUIRED
Values
auto cinematic guided-tour plain-scroll section-focus hero-spotlight feature-sweep conversion-flow pricing-focus proof-scrollsectionHint
string
Min length
1Max length 120effectiveId
string
Values
cinematic guided-tour plain-scroll section-focus hero-spotlight feature-sweep conversion-flow pricing-focus proof-scrollautoSelection
object
selectedId
string
REQUIRED
Values
cinematic guided-tour plain-scroll section-focus hero-spotlight feature-sweep conversion-flow pricing-focus proof-scrollsectionHint
string
Min length
1Max length 120confidence
number
REQUIRED
Min
0Max 1reason
string
REQUIRED
Min length
1Max length 500source
string
REQUIRED
Values
heuristic ai fallbacksignals
string[]
Item min length
1Item max length 240debugHud
boolean
Responses
202
Restyle recording started
application/jsonid
string
REQUIRED
status
string
REQUIRED
Values
refreshing recordingjobId
string
REQUIRED
400
Demo has no recorded script or validation failed
404
Not found
429
Quota exceeded
curl -X POST 'https://littledemo.com/api/v1/demos/string/restyle' \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "presentation": { "background": "string", "mockup": "macos-light", "zoom": { "enabled": true, "intensity": 1, "transitionMs": 100 }, "padding": 0, "cursor": { "style": "dot", "color": "string", "size": 8 }, "clickEffect": { "style": "pulse", "color": "string", "scale": 0.2 }, "fade": { "inMs": 0, "outMs": 0, "color": "black" }, "windowAnimation": { "intro": true, "outro": true, "introDurationMs": 200, "outroDurationMs": 200 }, "recordingTemplate": { "id": "auto", "sectionHint": "string", "effectiveId": "cinematic", "autoSelection": { "selectedId": "cinematic", "sectionHint": "string", "confidence": 0, "reason": "string", "source": "heuristic", "signals": [ "string" ] } }, "debugHud": true }}'
const response = await fetch('https://littledemo.com/api/v1/demos/string/restyle', { method: 'POST', headers: { "Authorization": "Bearer YOUR_API_TOKEN", "Content-Type": "application/json" }, body: JSON.stringify({ "presentation": { "background": "string", "mockup": "macos-light", "zoom": { "enabled": true, "intensity": 1, "transitionMs": 100 }, "padding": 0, "cursor": { "style": "dot", "color": "string", "size": 8 }, "clickEffect": { "style": "pulse", "color": "string", "scale": 0.2 }, "fade": { "inMs": 0, "outMs": 0, "color": "black" }, "windowAnimation": { "intro": true, "outro": true, "introDurationMs": 200, "outroDurationMs": 200 }, "recordingTemplate": { "id": "auto", "sectionHint": "string", "effectiveId": "cinematic", "autoSelection": { "selectedId": "cinematic", "sectionHint": "string", "confidence": 0, "reason": "string", "source": "heuristic", "signals": [ "string" ] } }, "debugHud": true } })});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://littledemo.com/api/v1/demos/string/restyle', headers=headers, json={ "presentation": { "background": "string", "mockup": "macos-light", "zoom": { "enabled": true, "intensity": 1, "transitionMs": 100 }, "padding": 0, "cursor": { "style": "dot", "color": "string", "size": 8 }, "clickEffect": { "style": "pulse", "color": "string", "scale": 0.2 }, "fade": { "inMs": 0, "outMs": 0, "color": "black" }, "windowAnimation": { "intro": true, "outro": true, "introDurationMs": 200, "outroDurationMs": 200 }, "recordingTemplate": { "id": "auto", "sectionHint": "string", "effectiveId": "cinematic", "autoSelection": { "selectedId": "cinematic", "sectionHint": "string", "confidence": 0, "reason": "string", "source": "heuristic", "signals": [ "string" ] } }, "debugHud": true }})print(response.json())
202
Response
{ "id": "<string>", "status": "refreshing", "jobId": "<string>"}
API Playground
Try this endpoint
POST
/api/v1/demos/{id}/restyle