PATCH
/
v1
/
datasets
/
{id}
curl --request PATCH \
  --url https://api.lunary.ai/v1/datasets/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "slug": "<string>"
}'
{
  "id": "<string>",
  "slug": "<string>",
  "format": "text",
  "ownerId": "<string>",
  "projectId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
slug
string

Response

200 - application/json
Updated dataset
id
string
slug
string
format
enum<string>
Available options:
text,
chat
ownerId
string
projectId
string