For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inBook a demo
DocsReferenceChangelog
DocsReferenceChangelog
  • Introduction
    • SDKs
    • Errors
  • Humanloop API
      • GETList For Project
      • GETList For Project
      • GETList
      • POSTCreate
      • GETGet
      • DELDelete
      • PATCHUpdate
      • GETList Configs
      • POSTCreate Feedback Type
      • PATCHUpdate Feedback Types
      • POSTExport
LogoLogo
Sign inBook a demo
Humanloop APIProjects

Create Feedback Type

Deprecated
POST
https://api.humanloop.com/v4/projects/:id/feedback-types
POST
/v4/projects/:id/feedback-types
$curl -X POST https://api.humanloop.com/v4/projects/id/feedback-types \
> -H "X-API-KEY: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "type": "type",
> "class": "select"
>}'
1{
2 "type": "rating",
3 "values": [
4 {
5 "value": "value",
6 "sentiment": "positive"
7 }
8 ]
9}
Was this page helpful?
Previous

Update Feedback Types

Next
Built with

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

idstringRequired

String ID of project. Starts with pr_.

Request

This endpoint expects an object.
typestringRequired
The type of feedback to update.
classenumRequired

The data type associated to this feedback type; whether it is a ‘text’/‘select’/‘multi_select’.

Allowed values:
valueslist of objectsOptional

The feedback values to be available. This field should only be populated when updating a ‘select’ or ‘multi_select’ feedback class.

Response

Successful Response
typeenum or string
The type of feedback. The default feedback types available are 'rating', 'action', 'issue', 'correction', and 'comment'.
valueslist of objects

The allowed values for categorical feedback types. Not populated for correction and comment.

Errors

422
Projects Create Feedback Type Request Unprocessable Entity Error