Skip to main content
PATCH
https://api.fltr.com
/
v1
/
datasets
/
{dataset_id}
Update Dataset
curl --request PATCH \
  --url https://api.fltr.com/v1/datasets/{dataset_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "is_public": true,
  "metadata": {}
}
'

Request

Updates dataset properties. Only provided fields will be updated.

Path Parameters

dataset_id
string
required
The unique dataset identifier

Headers

Authorization
string
required
Bearer token for authentication

Body

name
string
New dataset name (1-200 characters)
description
string
New description (max 1000 characters)
is_public
boolean
Update public accessibility
metadata
object
Update metadata (merges with existing)

Examples

cURL
curl -X PATCH https://api.fltr.com/v1/datasets/ds_abc123 \
  -H "Authorization: Bearer fltr_sk_abc123..." \
  -H "Content-Type: application/json" \
  -d '{"name": "Updated Name", "description": "New description"}'
Python
response = requests.patch(
    "https://api.fltr.com/v1/datasets/ds_abc123",
    headers={"Authorization": "Bearer fltr_sk_abc123..."},
    json={"name": "Updated Name"}
)

Response

{
  "id": "ds_abc123",
  "name": "Updated Name",
  "description": "New description",
  "is_public": false,
  "document_count": 42,
  "created_at": "2024-01-10T12:00:00Z",
  "updated_at": "2024-01-10T16:00:00Z"
}