Edit and resend
Replaces one of your earlier messages and rebuilds from there. Base44 rolls the app back to just before that message, then runs your new one in its place.
Use it to reword a request that took the builder in the wrong direction, instead of piling a correction on top. Everything the builder did from message_id onwards is undone first, so those changes are gone. To keep them, send a new message with Send chat message instead.
The request stays open until the new turn settles, so it can take several minutes. It consumes credits like any other turn.
Authorizations
Personal API key.
Path Parameters
ID of the app whose builder chat this request acts on.
Body
ID of the message you are replacing. Everything from this message onwards is undone before the new one is sent.
"7f3a1c88-52d4-4a0e-9b31-2c6f0d8e4a19"
What to send instead. Up to 100,000 characters.
"Add a contact form to the home page, with a phone field"
URLs of files to attach to the new message.
Response
The app once the replacement turn finished.
The app document the chat endpoints return once a turn settles.
The real payload is the whole app document, so this is a strict subset: the fields a caller needs to see what the turn did and whether it succeeded.
ID of the app.
"6820f3a4e7b91d003c45a1f2"
Display name of the app.
"My CRM"
The app's build status once the request returned. Read state to tell a finished turn from one that is still processing or that failed.
The app's conversation, including the messages this request produced.