Skip to content
Discussion options

You must be logged in to vote

Hi @levyshachar2LR, yes, you can update a Dataset Item by using the API to post a dataset item with the same id but different content. You can use the POST /api/public/dataset-items endpoint - it will create a new item if the id doesn't exist, or update the existing item if it does.

# Create a dataset item
curl -X POST "https://your-langfuse-instance/api/public/dataset-items" \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "datasetName": "my-dataset",
    "id": "my-custom-id",
    "input": {"original": "data"},
    "expectedOutput": {"result": "A"}
  }'
 
# Update the same item by posting with the same id
curl -X POST "https://your-langfuse-in…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@levyshachar2LR
Comment options

Answer selected by levyshachar2LR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment