Update a workspace iframe embed
Update a workspace iframe embed by ID, from an embed snippet (JSON customCode), raw HTML (JSON html), or an HTML file sent as the request body (Content-Type: text/html). HTML input behaves exactly like the in-app Upload HTML button: full documents are wrapped in a sandboxed srcdoc iframe. Updates the embed code rendered in the workspace and directly in the published workspace view — no new publication is created and no publish side effects run. Returns 404 if the embed’s iframe is no longer placed in a section on an existing workspace page (unless it backs a task action).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique identifier
"RiHO4e0Ju3DS"
Query Parameters
Select the workspace iframe embed properties that should be returned
customCode, thumbnailUrl, workspaceId, templateIframeEmbedId, createdAt, updatedAt Body
Provide exactly one of customCode or html.
An already-formed embed snippet (iframe HTML), stored verbatim. Provide exactly one of customCode or html.
200000"<iframe src=\"https://example.com/embed\" width=\"100%\" height=\"400\"></iframe>"
Raw HTML for the embed — the API equivalent of the in-app Upload HTML button. The markup is structurally validated (400 on broken markup, with line/column), and a full HTML document (<!doctype html>, <html>, <head> or <body>) is wrapped in a sandboxed srcdoc iframe before being stored as the embed code; fragments are stored as-is. Max 1MB. Provide exactly one of customCode or html.
1048576"<!doctype html><html><body><h1>Q3 Report</h1></body></html>"
Response
Update a workspace iframe embed by ID