Deletes a message in a chat session and its associated response.
REQUIRED | KEY | TYPE | DESCRIPTION |
---|---|---|---|
Yes | chatSessionId | str | Unique ID of the chat session. |
Yes | messageIndex | int | The index of the chat message within the UI. |
KEY | TYPE | DESCRIPTION |
---|---|---|
success | Boolean | true if the call succeeded, false if there was an error |
TYPE | WHEN |
---|---|
DataNotFoundError |
|
curl
curl "https://api.abacus.ai/api/deleteChatMessage?chatSessionId=b2f7f1806&messageIndex=0" \
-X POST \
-H "apiKey: *******************"
{
"success": true
}
python
client.delete_chat_message(
chat_session_id='b2f7f1806',
message_index='0'
)
None