ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Update chat memory for a specific user.
Args: request: The HTTP request containing the updated chat memory data. org: The organization/tenant identifier. user_id: The ID of the user to update chat memory for.
Returns: Response: A confirmation of the scheduled update task.
Raises: BadRequest: If the provided data is invalid. NotFound: If no chat memory exists for the user.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"username": "string",
"platform_key": "string",
"content": "string",
"session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
}'
{ "task_id": "task-123", "message": "Memory update scheduled successfully" }
Request
Delete all chat memory for a specific user.
Args: request: The HTTP request. org: The organization/tenant identifier. user_id: The ID of the user to delete chat memory for.
Returns: Response: A success message if the memory was deleted.
Raises: NotFound: If no chat memory exists for the user.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/' \
-H 'Authorization: YOUR_API_KEY_HERE'
Request
Update a specific chat memory entry.
Args: request: The HTTP request containing the updated chat memory data. org: The organization/tenant identifier. user_id: The ID of the user who owns the memory. memory_id: The ID of the specific memory entry to update.
Returns: Response: The updated chat memory entry.
Raises: BadRequest: If the provided data is invalid. NotFound: If the specified memory entry does not exist.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/{memory_id}/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/{memory_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/all-chats-memory/{memory_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"username": "johndoe",
"platform_key": "main",
"content": "Updated conversation context about machine learning concepts.",
"session_id": "937d3d46-3048-4f9d-aa5c-ce7c51d85332"
}'
{ "id": 1, "username": "johndoe", "platform_key": "main", "content": "Updated conversation context about machine learning concepts.", "session_id": "937d3d46-3048-4f9d-aa5c-ce7c51d85332" }