Description

Update Dataset

PATCH
/v1/datasets/{dataset_id}
/v1/datasets/{dataset_id}

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Request Body

application/jsonRequired

nameName

The name of the dataset.

descriptionDescription

Path Parameters

dataset_id
Required
Dataset Id

curl -X PATCH "https://api.patronus.ai/v1/datasets/string" \
  -H "X-API-KEY: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string"
  }'

Successful Response

{
  "id": "string",
  "name": "string",
  "dataset": {
    "id": "string",
    "name": "string",
    "description": "string",
    "creation_date": "2019-08-24",
    "created_at": "2019-08-24T14:15:22Z",
    "criteria": [
      "string"
    ],
    "samples": 0,
    "labeled": true,
    "use_case": "string",
    "type": "Patronus Managed",
    "has_evaluated_model_system_prompts": "none",
    "has_evaluated_model_retrieved_contexts": "none",
    "has_evaluated_model_inputs": "none",
    "has_evaluated_model_outputs": "none",
    "has_evaluated_model_gold_answers": "none"
  }
}