v1
sessions

Re-apply the AI's intended edit on top of the user's current version of one section.

Resolve a concurrent-edit conflict on ONE section. When a user edited a section while the AI was also changing it, this re-applies the AI's intended change on top of the user's current text (mode="redo"), or blends the user's and AI's versions into one (mode="merge"). Returns only the rewritten section HTML. Performs one AI edit and counts as one billable operation.

post/v1/sessions/{session_id}/chunks/{chunk_id}/re-edit

Request

  • Base URL: https://api.superdocs.app
  • URL: https://api.superdocs.app/v1/sessions/{session_id}/chunks/{chunk_id}/re-edit
  • Auth: HTTP bearer

Path parameters

session_idstring required
chunk_idstring required

Headers

authorizationstring nullable

Request body

user_current_htmlstring required
ai_original_old_htmlstring nullable
ai_proposed_new_htmlstring nullable
ai_explanationstring nullable
model_tierstring nullable
modestring nullable
window_idstring nullable

Response

Successful Response

chunk_idstring required
new_htmlstring nullable
errorstring nullable

Changes

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