examples

Legacy Update Examples

Changed on

Legacy update examples in bulk. For update involving attachments, use PATCH /v1/platform/datasets/{dataset_id}/examples instead.

patch/api/v1/examples/bulk

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/examples/bulk
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Request body

dataset_idstring uuid nullable

The example's current dataset. An example can't move to another dataset.

inputsobject nullable

New inputs. Replaces the existing inputs; omit to keep them.

outputsobject nullable

New outputs. Replaces the existing outputs; omit to keep them.

metadataobject nullable

New metadata. Replaces the existing metadata; omit to keep it.

overwriteboolean

Not used.

idstring uuid required

ID of the example to update.

Response

Successful Response

unknown required

Changes

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status