Skip to main content
POST
/
metadata
/
upsert
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.upsert(
    metadata={
        "foo": {
            "foo": {}
        }
    },
)
print(response.success)
{
  "success": true
}

Body

application/json
metadata
Metadata · object
required
data_connector_name
string | null
dataslice_id
string | null

Response

Successful Response

success
boolean
required