pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/Unstructured-IO/unstructured-python-client/tree/main/docs/sdks/workflows

heet" href="https://github.githubassets.com/assets/primer-b48faa60c69660fa.css" /> unstructured-python-client/docs/sdks/workflows at main · Unstructured-IO/unstructured-python-client · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Workflows

(workflows)

Overview

Available Operations

create_workflow

Create a new workflow, either custom or auto, and configure its settings.

Example Usage

from unstructured_client import UnstructuredClient
from unstructured_client.models import shared


with UnstructuredClient() as uc_client:

    res = uc_client.workflows.create_workflow(request={
        "create_workflow": {
            "name": "<value>",
            "workflow_type": shared.WorkflowType.ADVANCED,
        },
    })

    assert res.workflow_information is not None

    # Handle response
    print(res.workflow_information)

Parameters

Parameter Type Required Description
request operations.CreateWorkflowRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.CreateWorkflowResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*

delete_workflow

Delete a workflow by its ID.

Example Usage

from unstructured_client import UnstructuredClient


with UnstructuredClient() as uc_client:

    res = uc_client.workflows.delete_workflow(request={
        "workflow_id": "3e61b8a6-32b6-47cf-bce7-6d13357b30eb",
    })

    assert res.any is not None

    # Handle response
    print(res.any)

Parameters

Parameter Type Required Description
request operations.DeleteWorkflowRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.DeleteWorkflowResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*

get_workflow

Retrieve detailed information for a specific workflow by its ID.

Example Usage

from unstructured_client import UnstructuredClient


with UnstructuredClient() as uc_client:

    res = uc_client.workflows.get_workflow(request={
        "workflow_id": "d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76",
    })

    assert res.workflow_information is not None

    # Handle response
    print(res.workflow_information)

Parameters

Parameter Type Required Description
request operations.GetWorkflowRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.GetWorkflowResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*

list_workflows

Retrieve a list of workflows, optionally filtered by source, destination, state, name, date range, and supports pagination and sorting.

Example Usage

from unstructured_client import UnstructuredClient


with UnstructuredClient() as uc_client:

    res = uc_client.workflows.list_workflows(request={})

    assert res.response_list_workflows is not None

    # Handle response
    print(res.response_list_workflows)

Parameters

Parameter Type Required Description
request operations.ListWorkflowsRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.ListWorkflowsResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*

run_workflow

Run a workflow by triggering a new job if none is currently active.

Example Usage

from unstructured_client import UnstructuredClient


with UnstructuredClient() as uc_client:

    res = uc_client.workflows.run_workflow(request={
        "workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013",
    })

    assert res.job_information is not None

    # Handle response
    print(res.job_information)

Parameters

Parameter Type Required Description
request operations.RunWorkflowRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.RunWorkflowResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*

update_workflow

Update an existing workflow's name, connectors, schedule, or workflow type.

Example Usage

from unstructured_client import UnstructuredClient


with UnstructuredClient() as uc_client:

    res = uc_client.workflows.update_workflow(request={
        "update_workflow": {},
        "workflow_id": "b9b7e688-353f-4ff2-bcd7-a49b5fa5f6c7",
    })

    assert res.workflow_information is not None

    # Handle response
    print(res.workflow_information)

Parameters

Parameter Type Required Description
request operations.UpdateWorkflowRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.UpdateWorkflowResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy