delete
Delete
deprecated
Delete data by its ID from the specified dataset.
Args: data_id: The UUID of the data to delete dataset_id: The UUID of the dataset containing the data mode: “soft” (default) or “hard” - hard mode also deletes degree-one entity nodes user: Authenticated user delete_dataset_if_empty: If True, deletes the dataset if it is left empty after data deletion
Returns: JSON response indicating success or failure
DELETE
Delete
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Response
Successful Response
Previous
UpdateUpdate data in a dataset.
This endpoint updates existing documents in a specified dataset by providing the data_id of the existing document
to update and the new document with the changes as the data.
The document is updated, analyzed, and the changes are integrated into the knowledge graph.
## Request Parameters
- **data_id** (UUID, required, query): UUID of the existing document to update (returned by GET /api/v1/datasets/{dataset_id}/data)
- **dataset_id** (UUID, required, query): UUID of the dataset containing the document to update
- **data** (List[UploadFile]): New version of the document that replaces the existing one.
- **node_set** (Optional[List[str]]): List of node identifiers for graph organization and access control.
Used for grouping related data points in the knowledge graph.
## Response
Returns pipeline run information for the update (delete + re-add + cognify) operation.
## Error Codes
- **422 Unprocessable Entity**: data_id or dataset_id missing or not a valid UUID
- **403 Forbidden**: User lacks write permission on the dataset
- **500 Internal Server Error**: Pipeline run errored or an unexpected error occurred during the update
## Notes
- The existing document is deleted and replaced by the uploaded file, then the dataset is re-cognified.
Next
Delete