Skip to main content
PUT
/
api
/
v1
/
traces
/
{id}
cURL
curl --request PUT \
  --url http://studio.premai.io/api/v1/traces/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "score": 0.5,
  "feedback": "<string>",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userId": "<string>",
  "createdAt": "2023-12-25",
  "input": "<string>",
  "output": "<string>",
  "modelId": "<string>",
  "projectId": null,
  "score": null,
  "feedback": null,
  "addedToDataset": true,
  "processingStatus": "none"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json
score
number
Required range: 0 <= x <= 1
feedback
string
Maximum length: 2048
projectId
string<uuid> | null

Response

success response

id
string<uuid>
required
userId
string
required
createdAt
string<date> | null
required
input
string
required
Minimum length: 1
output
string
required
Minimum length: 1
modelId
string
required
Minimum length: 1
addedToDataset
boolean
required
projectId
string<uuid> | null
score
number | null
Required range: 0 <= x <= 1
feedback
string | null
Maximum length: 2048
processingStatus
enum<string>
default:none
Available options:
none,
processing,
failed