Skip to main content
POST
Re-apply the AI's intended edit on top of the user's current version of one section.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

session_id
string
required
chunk_id
string
required

Body

application/json

Re-apply the AI's intended change on the user's current section HTML, OR (mode='merge') combine the user's version and the AI's version into one.

user_current_html
string
required
ai_original_old_html
string | null
ai_proposed_new_html
string | null
ai_explanation
string | null
model_tier
string | null
mode
string | null
default:redo

Response

Successful Response

chunk_id
string
required
new_html
string | null
error
string | null