Forms
Undo an AI fix
/v1/forms/{formId}/fix/undoPut the draft back exactly as it was before the latest AI fix. This works only while the draft is still the one the fix left, as canUndo shows. Any later change to the draft or theme overrides, or a publish, ends it, and undo answers 409 undo_unavailable with the reason. hasUnpublishedChanges goes back to what it was, so undoing to exactly the live version leaves nothing to publish. Returns the fix with undone set to true.
Path parameters
formIdstringrequiredThe form's id.
Response
fixIdstringrequiredThe fix's id.
statusenumrequiredfixingwhile AI works.donewhen it finished;changesanderrorsLeftsay what it did.failedwhen it couldn't;errorsays why and the draft is unchanged.One of
"fixing","done","failed"errorsBeforeintegerrequiredHow many errors the draft had when the fix started.
-9007199254740991–9007199254740991
errorsLeftinteger or nullrequiredHow many errors are left after the fix. 0 means the form is ready to publish. Null until it's done.
changesarray of stringrequiredWhat the fix changed, in plain words.
errorstring or nullrequiredWhy the fix failed. Null unless it failed.
canUndobooleanrequiredWhether
POST /v1/forms/{formId}/fix/undocan still put the draft back. That stops being possible once the draft or theme overrides change again, or the form is published.undonebooleanrequiredWhether the fix was undone.
startedAtnumberrequiredWhen the fix started, in milliseconds since the epoch.
endedAtnumber or nullrequiredWhen the fix ended, in milliseconds since the epoch. Null while it's running.
Errors answer with a status and the error shape.