Set Prompt run Score

PATCH
PATCHhttps://api.hyperleapai.com/prompt-runs/{promptRunId}/set-score

Update the score parameters for a Prompt run based on User feedback.

Authenticated with your API key in the x-hl-api-key request header.

Path parameters

promptRunIdstring · uuidrequired

Request body

application/json
feedbackIdstring · uuid
scoreinteger · int32
commentsstringnullable
tagsstring[]nullable
scoreConfidencenumber · doublenullable

Responses

200OK

No response body.

curl -X PATCH "https://api.hyperleapai.com/prompt-runs/{promptRunId}/set-score" \
  -H "x-hl-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "feedbackId": "string",
  "score": 0,
  "comments": "string",
  "tags": [
    "string"
  ],
  "scoreConfidence": 0
}'

Explore Hyperleap AI

AI customer service agents that answer FAQs, capture leads, and book appointments across Website, WhatsApp, Instagram, and Facebook Messenger.