You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Accordiontitle="curl (local source and local destination)">
1748
+
To run a workflow that uses a local source and local destination, the workflow must have already been created to use a local source and a local destination. Also,
1749
+
the workflow must have already been created as a custom worklow, and the workflow cannot have been created to run on a schedule.
1750
+
1751
+
The workflow's source and destination must both be local. You cannot run a workflow that specifies a local source and a remote destination, nor can you run a worklow that specifies a remote source
1752
+
and a local destination.
1753
+
1754
+
The Unstructured user interface (UI) and the Unstructured Python SDK currently do not support running workflows that use a local source
1755
+
and a local destination.
1756
+
1757
+
In the following command, replace:
1758
+
1759
+
-`</full/path/to/local/filename.extension>` with the full path to the local file to upload.
1760
+
- `<filename.extension>` with the filename of the local file to upload.
1761
+
- `<local-file-media-type>` with the local file's media type. For a list of available media types, such as `application/pdf`, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml).
<Accordiontitle="Postman (remote source and remote destination)">
1748
1774
1. In the method drop-down list, select **POST**.
1749
1775
2. In the address box, enter the following URL:
1750
1776
@@ -1759,6 +1785,38 @@ the `POST` method to call the `/workflows/<workflow-id>/run` endpoint (for `curl
1759
1785
1760
1786
4. Click **Send**.
1761
1787
</Accordion>
1788
+
<Accordiontitle="Postman (local source and local destination)">
1789
+
To run a workflow that uses a local source and local destination, the workflow must have already been created to use a local source and a local destination. Also,
1790
+
the workflow must have already been created as a custom worklow, and the workflow cannot have been created to run on a schedule.
1791
+
1792
+
The workflow's source and destination must both be local. You cannot run a workflow that specifies a local source and a remote destination, nor can you run a worklow that specifies a remote source
1793
+
and a local destination.
1794
+
1795
+
The Unstructured user interface (UI) and the Unstructured Python SDK currently do not support running workflows that use a local source
For a list of available media types, such as `application/pdf`, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml).
1817
+
1818
+
5. Click **Send**.
1819
+
</Accordion>
1762
1820
</AccordionGroup>
1763
1821
1764
1822
To run a workflow on a schedule instead, specify the `schedule` setting in the request body when you create or update a
@@ -2284,3 +2342,51 @@ the `POST` method to call the `/jobs/<job-id>/cancel` endpoint (for `curl` or Po
2284
2342
4. Click **Send**.
2285
2343
</Accordion>
2286
2344
</AccordionGroup>
2345
+
2346
+
### Download a processed local file from a job
2347
+
2348
+
This applies only to jobs that use a workflow with a local source and a local destination.
2349
+
2350
+
To download a processed local file from a completed job, use `GET` to call the `/jobs/<job-id>/download` endpoint, replacing
2351
+
`<job-id>` with the job's unique ID. To get this ID, see [List jobs](#list-jobs).
2352
+
2353
+
You must also provide Unstructured's IDs for the file to download and the workflow's output node. To get these IDs, see [Get a job](#get-a-job). In the
2354
+
response:
2355
+
2356
+
- Unstructured's IDs for the file to download and the workflow's output node are in the `output_node_files` array.
2357
+
- The ID for the file to download is in the `output_node_files` array's `file_id` field.
2358
+
- The ID for the workflow's output node is in the `output_node_files` array's `node_id` field.
2359
+
2360
+
Currently, you cannot use the Unstructured user interface (UI) or the Unstructured Python SDK to download a file from a job that uses a
2361
+
workflow with a local source and a local destination.
Copy file name to clipboardExpand all lines: api-reference/workflow/workflows.mdx
+81-2Lines changed: 81 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ specify the settings for the workflow, as follows:
193
193
asyncio.run(create_workflow())
194
194
```
195
195
</Accordion>
196
-
<Accordiontitle="curl">
196
+
<Accordiontitle="curl (remote source and remote destination)">
197
197
```bash
198
198
curl --request 'POST' --location \
199
199
"$UNSTRUCTURED_API_URL/workflows" \
@@ -222,7 +222,41 @@ specify the settings for the workflow, as follows:
222
222
}'
223
223
```
224
224
</Accordion>
225
-
<Accordiontitle="Postman">
225
+
<Accordiontitle="curl (local source and local destination)">
226
+
To use a local source and a local destination, do not specify a `source_id` or `destination_id` value. Also, the `workflow_type` must be set to `custom`.
227
+
228
+
The source and destination must both be local. You cannot specify a local source and a remote destination, nor can you specify a remote source
229
+
and a local destination.
230
+
231
+
The Unstructured user interface (UI) and the Unstructured Python SDK currently do not support creating a workflow with a local source
<Accordiontitle="Postman (remote source and remote destination)">
226
260
1. In the method drop-down list, select **POST**.
227
261
2. In the address box, enter the following URL:
228
262
@@ -262,6 +296,51 @@ specify the settings for the workflow, as follows:
262
296
263
297
5. Click **Send**.
264
298
</Accordion>
299
+
<Accordiontitle="Postman (local source and local destination)">
300
+
To use a local source and a local destination do not specify a `source_id` or `destination_id` value. Also, the `workflow_type` must be set to `custom`.
301
+
302
+
The source and destination must both be local. You cannot specify a local source and a remote destination, nor can you specify a remote source
303
+
and a local destination.
304
+
305
+
The Unstructured user interface (UI) and the Unstructured Python SDK currently do not support creating a workflow with a local source
306
+
and a local destination.
307
+
308
+
1. In the method drop-down list, select **POST**.
309
+
2. In the address box, enter the following URL:
310
+
311
+
```text
312
+
{{UNSTRUCTURED_API_URL}}/workflows
313
+
```
314
+
315
+
3. On the **Headers** tab, enter the following headers:
0 commit comments