Skip to main content
POST
/
data_connector
/
update
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
)
connector_response = client.data_source.update(
    connector_body={
        "collection_name": "collection_name",
        "database_name": "database_name",
        "db_user": "db_user",
        "name": "name",
        "password": "password",
        "port": "port",
        "url": "url",
    },
    connector_name="connector_name",
)
print(connector_response.profile_id)
{
  "profile_id": "<string>"
}

Body

application/json
connector_name
string
required
connector_body
PSQLConnectorConfig · object
required

Response

Successful Response

profile_id
string
required