Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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.workflows.upsert(
workflow={
"cadence": "cadence",
"name": "name",
"stages": [{
"jobs": [{
"endpoint": "endpoint",
"endpoint_request_body": {},
}]
}],
},
)
print(response.workflow_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 response = await client.workflows.upsert({
workflow: {
cadence: 'cadence',
name: 'name',
stages: [
{
jobs: [
{
endpoint: 'endpoint',
endpoint_request_body: {},
},
],
},
],
},
});
console.log(response.workflow_id);A valid request URL is required to generate request examplesA valid request URL is required to generate request examplesA valid request URL is required to generate request examplesA valid request URL is required to generate request examplesA valid request URL is required to generate request examples{
"workflow_id": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Upsert a workflow
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.workflows.upsert(
workflow={
"cadence": "cadence",
"name": "name",
"stages": [{
"jobs": [{
"endpoint": "endpoint",
"endpoint_request_body": {},
}]
}],
},
)
print(response.workflow_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 response = await client.workflows.upsert({
workflow: {
cadence: 'cadence',
name: 'name',
stages: [
{
jobs: [
{
endpoint: 'endpoint',
endpoint_request_body: {},
},
],
},
],
},
});
console.log(response.workflow_id);A valid request URL is required to generate request examplesA valid request URL is required to generate request examplesA valid request URL is required to generate request examplesA valid request URL is required to generate request examplesA valid request URL is required to generate request examples{
"workflow_id": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Successful Response
