curl --request POST \
--url https://api.allium.so/api/v1/streams/data-management/workflows \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"description": "<string>",
"filter_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data_source_config": {
"type": "PUBSUB",
"topic": "<string>"
},
"data_destination_config": {
"type": "PUBSUB",
"topic": "<string>",
"subscription": "<string>",
"delivery_type": "PULL",
"webhook_url": "<string>"
}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"filter_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data_source_config": {
"type": "PUBSUB",
"topic": "<string>"
},
"data_destination_config": {
"type": "PUBSUB",
"topic": "<string>",
"subscription": "<string>",
"delivery_type": "PULL",
"webhook_url": "<string>"
},
"external_workflow_id": "<string>"
}
Create a new workflow by specifying the description, filter, data source, and data destination
curl --request POST \
--url https://api.allium.so/api/v1/streams/data-management/workflows \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"description": "<string>",
"filter_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data_source_config": {
"type": "PUBSUB",
"topic": "<string>"
},
"data_destination_config": {
"type": "PUBSUB",
"topic": "<string>",
"subscription": "<string>",
"delivery_type": "PULL",
"webhook_url": "<string>"
}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"filter_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data_source_config": {
"type": "PUBSUB",
"topic": "<string>"
},
"data_destination_config": {
"type": "PUBSUB",
"topic": "<string>",
"subscription": "<string>",
"delivery_type": "PULL",
"webhook_url": "<string>"
},
"external_workflow_id": "<string>"
}
Successful Response
The response is of type object
.