Builder

Live editing: apply edits made in the preview (text, links, pictures, sections, theme) to the files and the preview. No model, no Build Credits; saved as one version within 20 seconds (or before the next chat message, restore or publish). The answer carries the ops that undo exactly this change

post/builder/sessions/{sessionId}/edits

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/edits
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

sessionIdstring uuid required

Request body

baseVersioninteger

The editVersion the editor saw; 409 (reason stale) when the files changed since

labelstring

What the customer did, in their words (kept for the history)

Response

Applied

changedFilesstring[] required
versioninteger required

The new editVersion

pendingChangesinteger required

Edits not yet saved as a version

needsTranslationstring[] required

Languages whose files got another language's text and should be translated

preview'synced' | 'starting' | 'none' required

synced: the preview has the new files (it updates in place); starting: it is being started with them; none: no preview

Changes

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