Like or Dislike Prompt
PUT/api/chat/like-prompt
This endpoint allows liking or disliking 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 liked or disliked.
The status indicating whether the response is liked or disliked.
An optional message providing additional context.
Responses
- 200
- 400
- 403
- 404
- 500
Successfully updated the like/dislike status.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the query response.
The updated status indicating whether the response is liked or disliked.
An optional message providing additional context.
{
"id": "string",
"status": "string",
"message": "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"
}