PATCH/api/orgs/{org_id}/datasets/{dataset_id}/items/{item_id}

Edit a dataset item

Change an item's expected output or metadata.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • dataset_idstringrequired

    The dataset id.

  • item_idstringrequired

    The item id.

Request body

  • expected_outputany

    The expected output.

  • metadataobject | null

Responses

  • 200

    The item.

    Response
    • idstring
    • inputany

      The input (messages and tools for a request).

    • expected_outputany

      The expected output, or null.

    • metadataobject
    • sourceobject
      source
      • kindenum
        "request""session""manual"
      • idstring | null
    • created_atstring
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl -X PATCH 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/items/6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "expected_output": {
    "role": "assistant",
    "content": "Order 4471 shipped on Monday, November 16."
  }
}'

Response

{
  "id": "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": "Where is order 4471?"
      }
    ]
  },
  "expected_output": {
    "role": "assistant",
    "content": "Order 4471 shipped on Monday."
  },
  "metadata": {},
  "source": {
    "kind": "request",
    "id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF"
  },
  "created_at": "2026-11-18T14:32:07Z"
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/items/6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c