Perform a partial update on a dataset. You can update the name, summary, and/or tags. At least one field must be provided. The dataset name must remain unique per tenant.
This endpoint only updates metadata fields. Dataset configuration and type cannot be changed after creation.
Request
Path parameters
The current name of the dataset to update
Authentication
Requires authentication via tenant credentials.
Request body
At least one field must be provided:
New dataset name (must be unique per tenant)
Updated summary description
Updated comma-separated tags
Response
Returns the complete updated dataset object:
Unique identifier (UUID) for the dataset
Dataset type name (unchanged)
Dataset configuration (unchanged)
Provisioner state information (for local dataset types) Provisioner status: stopped, starting, running, stopping, or error
Provisioner state including connection config and runtime info
ISO 8601 timestamp when provisioner was started
ISO 8601 timestamp when provisioner was stopped
Error message if status is error
ISO 8601 timestamp of creation (unchanged)
ISO 8601 timestamp of last update (will be current time)
List of endpoints connected to this dataset Endpoint unique identifier
Update all fields
Update name only
Update tags only
curl -X PATCH https://your-domain.com/datasets/legal-docs \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"name": "legal-docs-updated",
"summary": "Updated legal documents for RAG analysis",
"tags": "legal,documents,analysis,updated"
}'
200 OK
404 Not Found
409 Conflict
422 Unprocessable Entity
{
"id" : "550e8400-e29b-41d4-a716-446655440000" ,
"name" : "legal-docs-updated" ,
"dtype" : "local_file" ,
"configuration" : {
"collectionName" : "LegalDocuments" ,
"httpPort" : 8100 ,
"ingestionPaths" : [
{
"path" : "/home/user/documents/legal" ,
"description" : "Legal documents directory"
}
],
"fileTypes" : [ ".pdf" , ".txt" , ".docx" ]
},
"summary" : "Updated legal documents for RAG analysis" ,
"tags" : "legal,documents,analysis,updated" ,
"provisioner_state" : {
"status" : "running" ,
"state" : {
"httpPort" : 8100 ,
"container_id" : "abc123def456"
},
"started_at" : "2024-03-15T10:30:00Z" ,
"stopped_at" : null ,
"error" : null
},
"created_at" : "2024-03-15T10:30:00Z" ,
"updated_at" : "2024-03-15T14:22:00Z" ,
"connected_endpoints" : [
{
"id" : "650e8400-e29b-41d4-a716-446655440001" ,
"name" : "Legal Search API" ,
"slug" : "legal-search"
}
]
}