Save Prompt Status
PUT/api/chat/save-prompt
This endpoint allows saving the status of a query response in a specified conversation within a workspace. The request must include a valid API key and user ID.
Request
Header Parameters
API key to authorize the request.
ID of the user making the request.
- application/json
Body
required
ID of the workspace.
ID of the conversation.
ID of the query response to be saved.
The status indicating the save action.
Responses
- 200
- 400
- 403
- 404
- 500
Successfully updated the save status.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the query response.
The updated status indicating the save action.
{
"id": "string",
"status": "string"
}
Invalid body or fetch operation failed.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating the issue with the request body or fetch operation.
{
"error": "string"
}
Invalid API key.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Detailed error message indicating that the API key is invalid.
{
"error": {
"message": "string"
}
}
Conversation or workspace not found.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Error message indicating that the conversation or workspace was not found.
{
"error": {
"message": "string"
}
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating an internal server error.
{
"message": "string"
}