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={
        "client_id": "client_id",
        "client_secret": "client_secret",
        "name": "name",
        "tenant_id": "tenant_id",
        "type": "OnedriveDataSourceManager",
    },
    connector_name="connector_name",
)
print(connector_response.profile_id)
import UnstructuredClient from 'unstructured-sdk';

const client = new UnstructuredClient({
authMethod: 'My Auth Method',
username: process.env['UNSTRUCTURED_USERNAME'], // This is the default and can be omitted
password: process.env['UNSTRUCTURED_PASSWORD'], // This is the default and can be omitted
});

const connectorResponse = await client.dataSource.update({
connector_body: {
client_id: 'client_id',
client_secret: 'client_secret',
name: 'name',
tenant_id: 'tenant_id',
type: 'OnedriveDataSourceManager',
},
connector_name: 'connector_name',
});

console.log(connectorResponse.profile_id);
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
A valid request URL is required to generate request examples
{
  "profile_id": "<string>"
}
{
"detail": "<string>"
}
{
"detail": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
{
"detail": "<string>"
}
{
"detail": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
connector_name
string
required
connector_body
OnedriveConnectorConfig · object
required

Response

Successful Response

profile_id
string
required