POST
/
v2
/
projects
/
{project_id}
/
feedback
/
templates
Create Feedback Template V2
curl --request POST \
  --url https://api.galileo.ai/v2/projects/{project_id}/feedback/templates \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '{
  "name": "creativity",
  "criteria": "How creative was the response?",
  "constraints": {
    "feedback_type": "score",
    "min": 1,
    "max": 10
  }
}'
{
  "name": "<string>",
  "include_explanation": true,
  "criteria": "<string>",
  "constraints": {
    "feedback_type": "<string>"
  },
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "created_by": "<string>",
  "position": 123,
  "usage_count": 123
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string<uuid4>
required

Body

application/json
name
string
required
Required string length: 1 - 255
constraints
object
required
include_explanation
boolean
default:false
criteria
string | null
Minimum length: 1

Response

Successful Response

name
string
required
Required string length: 1 - 255
include_explanation
boolean
required
constraints
object
required
id
string<uuid4>
required
created_at
string<date-time>
required
created_by
string<uuid4> | null
required
position
integer
required
criteria
string | null
Minimum length: 1
usage_count
integer | null

Number of feedback ratings using the template.