Skip to main content
POST
/
dataslice
/
create
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
)
data_slice = client.data_slice.create(
    data_connector_name="data_connector_name",
    dataslice_name="dataslice_name",
)
print(data_slice.dataslice_id)
{
  "dataslice_id": "<string>"
}

Body

application/json
dataslice_name
string
required
data_connector_name
string
required
condition
Condition · object
description
string | null
status
string
default:active
data_points
integer | null
latest_taxonomy
Latest Taxonomy · object
taxonomy_id
string | null
parent_dataslice_id
string | null

Response

Successful Response

dataslice_id
string
required