Skip to main content

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

    x-api-key stringrequired

    API key to authorize the request.

    userId stringrequired

    ID of the user making the request.

Body

required

    workspaceId stringrequired

    ID of the workspace.

    conversationId stringrequired

    ID of the conversation.

    queryResponseId stringrequired

    ID of the query response to be liked or disliked.

    status stringrequired

    The status indicating whether the response is liked or disliked.

    message string

    An optional message providing additional context.

Responses

Successfully updated the like/dislike status.

Schema

    id string

    The ID of the query response.

    status string

    The updated status indicating whether the response is liked or disliked.

    message string

    An optional message providing additional context.

Loading...