Skip to main content
POST
/
dataslice
/
export
/
metadata
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.data_slice.export(
    data_connector_name="data_connector_name",
)
print(response)
{
  "detail": "<string>"
}

Body

application/json
data_connector_name
string
required
dataslice_id
string | null
export_file_level
boolean
default:false
export_format
enum<string> | null
Available options:
json,
csv
selected_metadata_fields
string[] | null

Response

Successful Response