Create a new workflow, either custom or auto, and configure its settings.
curl --request POST \
--url https://platform.unstructuredapp.io/api/v1/workflows/ \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destination_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": "every 15 minutes",
"reprocess_all": true
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sources": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"destinations": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": {
"crontab_entries": [
{
"cron_expression": "0 0 * * *"
}
]
},
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"reprocess_all": true
}
Successful Response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://platform.unstructuredapp.io/api/v1/workflows/ \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destination_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": "every 15 minutes",
"reprocess_all": true
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sources": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"destinations": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": {
"crontab_entries": [
{
"cron_expression": "0 0 * * *"
}
]
},
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"reprocess_all": true
}
Create a new workflow, either custom or auto, and configure its settings.
curl --request POST \
--url https://platform.unstructuredapp.io/api/v1/workflows/ \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destination_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": "every 15 minutes",
"reprocess_all": true
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sources": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"destinations": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": {
"crontab_entries": [
{
"cron_expression": "0 0 * * *"
}
]
},
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"reprocess_all": true
}
Successful Response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://platform.unstructuredapp.io/api/v1/workflows/ \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destination_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": "every 15 minutes",
"reprocess_all": true
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sources": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"destinations": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"workflow_type": "basic",
"workflow_nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"subtype": "<string>",
"settings": {}
}
],
"schedule": {
"crontab_entries": [
{
"cron_expression": "0 0 * * *"
}
]
},
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"reprocess_all": true
}