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
      • GETGet
      • PATCHUpdate
      • DELDelete
LogoLogo
Sign inBook a demo
Humanloop APIDatapoints

Update

Deprecated
PATCH
https://api.humanloop.com/v4/datapoints/:id
PATCH
/v4/datapoints/:id
$curl -X PATCH https://api.humanloop.com/v4/datapoints/id \
> -H "X-API-KEY: <apiKey>"
1{
2 "id": "id",
3 "dataset_id": "dataset_id",
4 "inputs": {
5 "key": "value"
6 },
7 "messages": [
8 {
9 "role": "user",
10 "content": "content",
11 "name": "name",
12 "tool_call_id": "tool_call_id",
13 "tool_calls": [
14 {
15 "id": "id",
16 "type": "function",
17 "function": {
18 "name": "name"
19 }
20 }
21 ],
22 "thinking": [
23 {
24 "type": "thinking",
25 "signature": "signature",
26 "thinking": "thinking"
27 }
28 ],
29 "tool_call": {
30 "name": "name"
31 }
32 }
33 ],
34 "target": {
35 "key": "value"
36 }
37}

Edit the input, messages and criteria fields of a datapoint.

WARNING: This endpoint has been decommissioned and no longer works. Please use the v5 datasets API instead.

Was this page helpful?
Previous

Delete

Next
Built with

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

idstringRequired
String ID of datapoint.

Response

Successful Response
idstring
dataset_idstring
inputsmap from strings to strings
messageslist of objects
targetmap from strings to strings or integers or doubles or booleans or lists of any or maps from strings to any

Errors

422
Datapoints Update Request Unprocessable Entity Error