Update With Ai
POST/api/v1/bpm/update-with-ai
Amend an existing draft process flow version using a natural-language instruction.
The backend uses the draft's stored Logic-Core (if available from a prior AI generation) for a direct amendment pass. If the draft was drawn manually and has no Logic-Core, the current BPMN XML is passed as text so the AI derives a Logic-Core first, then applies the amendment.
On success a new draft ProcessFlowVersion is created (based_on_id points to the source version). The source draft is untouched, enabling an ephemeral session-side revert by deleting the new draft.
Request
Responses
- 200
- 422
Successful Response
Validation Error