post
https://api.liveramp.com/analytics-environment/v1/flows
Create flow
Request example for eventBasedFlow
curl --location 'https://api-staging.liveramp.com/analytics-environment/v1/flows' \
--header 'Tenant-ID: ${tenantId}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${access_token}' \
--data '{
"flowOrder": [
{
"order": 1,
"scheduleJobId": 101
},{
"order": 2,
"scheduleJobId": 102
}
],
"flowOwner": "[email protected]",
"frequency": "",
"loadDataTable": "lranalytics-us-101011-cert.example_test.example_test_flow",
"name": "test event based trigger",
"type": "eventBasedTrigger"
}'
Request example for timeBasedFlow
curl --location 'https://api-staging.liveramp.com/analytics-environment/v1/flows' \
--header 'Tenant-ID: ${tenantId}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${access_token}' \
--data '{
"flowOrder": [
{
"order": 1,
"scheduleJobId": 99
}
],
"flowOwner": "",
"frequency": "*/15 * * * *",
"loadDataTable": "",
"name": "test time based trigger",
"type": "timeBasedTrigger"
}'
Response example
{
"id": 5
}