Create and manage datasets
Last updated
Was this helpful?
Last updated
Was this helpful?
Textual uses datasets to produce files with sensitive values replaced.
Before you perform these tasks, remember to .
To get the complete list of datasets that you own, use .
To create a new dataset and then upload a file to it, use .
To add a file to the dataset, use . To identify the file, provide the file path and name.
To provide the file as IO bytes, you provide the file name and the file bytes. You do not provide a path.
Textual creates the dataset, scans the uploaded file, and redacts the detected values.
To change the configuration of a dataset, use .
You can use dataset.edit
to change:
The name of the dataset
Alternatively, instead of specifying the configuration, you can use the copy_from_dataset
parameter to indicate to copy the configuration from another dataset.
The response includes:
The name and identifier of the dataset
The number of files in the dataset
The number of files that are waiting to be processed (scanned and redacted)
The number of files that had errors during processing
For example:
To get a list of files that have a specific status, use the following:
The file list includes:
File identifier and name
Number of rows and columns
Processing status
For failed files, the error
When the file was uploaded
For example:
The response looks something like:
The
To get the current status of the files in the current dataset, use :
To delete a file from a dataset, use .
To get the redacted content in JSON format for a dataset, use :