DELETE /api/v202610/energymanager/reporting/chat/{chatId}/message/uncommitted

Discards the messages in a reporting chat that were never committed by saving a report

DeleteUncommittedReportChatMessagesV202610 Permissions: EnergyManagerModule (View)
Use this endpoint when the user leaves a report without saving, so the chat history matches the last saved report. It permanently deletes every user, assistant, error, and undo message added since the chat’s last report save. Committed messages and any message linked to a saved report version are kept. When no messages remain (a report that was never saved), the chat is also deactivated and no longer appears in reporting chat endpoints. Calling it when nothing is uncommitted is not an error. To keep the messages instead, save the report through the dynamic-report endpoints with a message identifier from this chat.

Request Headers

Header Value Required Description
ECI-ApiKey string Yes Your API key. See Authentication.
Content-Type application/json Yes All requests must specify JSON content type.

Path Parameters

Name Description Type Required
chatId Unique numeric identifier of an active reporting chat owned by the authenticated user integer (int32) Required

Responses

204 No Content The request succeeded. No content is returned in the response body.
404 Not Found The requested resource was not found. Verify the ID or path is correct.