Skip to main content
PUT
/
dataset
/
{dataSetId}
Update Dataset
curl --request PUT \
  --url https://api.promptmetrics.dev/dataset/{dataSetId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "responseData": {
    "_id": "<string>",
    "workspace_id": "<string>",
    "name": "<string>",
    "version": "<string>",
    "headers": [
      "<string>"
    ],
    "rows": "<array>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataSetId
string
required

Body

application/json
name
string

Response

200 - application/json

Dataset updated

responseData
object
message
string