Skip to main content
POST
/
classify
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.metadata.generate.generate(
    data_connector_name="data_connector_name",
)
print(response.message)
{
  "message": "<string>",
  "output": {}
}

Body

application/json
data_connector_name
string
required
file_names
string[] | null
tag_names
string[] | null
tag_datas
Tag Datas · object
overwrite
boolean
default:false
job_id
string | null
soft_run
boolean
default:false
hierarchy_name
string | null
hierarchy_data
Hierarchy Data · object
dataslice_id
string | null

Response

Successful Response

message
string
required
output
Output · object