Trigger Test Flow
POST {{url}}/citizen-xapi/api/v1/organizations/{{organization_id}}/flows/{{flow_id}}/test
Request Body
{"flow"=>{"id"=>"{{flow_id}}", "name"=>"External", "description"=>"Mulesoft Composer flow", "type"=>"citizenbuilder", "ownerId"=>"composer-112022", "ownerUserId"=>"ed952da9-13c1-40f7-a328-d205aa91cf99", "ownerFirstName"=>nil, "ownerLastName"=>nil, "organizationId"=>"d6b66e09-6d00-4fbd-8e25-ce5a6f0e58c5", "connectors"=>["scheduler", "slack"], "trigger"=>{"name"=>"scheduler", "connector"=>"scheduler", "connectionId"=>nil, "fieldValues"=>{"schedulingStrategySelection"=>nil, "schedulingStrategy"=>{"frequency"=>"15"}}, "visibleFields"=>nil, "hiddenFields"=>nil, "dynamicOutput"=>nil, "dynamicOutputAttributes"=>nil, "fieldProperties"=>nil, "sequenceNumber"=>"1", "isCustomDisplayName"=>false, "type"=>"TRIGGER", "id"=>"0a391bfd-5c4c-44e3-a2c8-85e69a32ede3", "displayName"=>"Trigger: On Schedule your workflow in Scheduler"}, "steps"=>[{"dynamicFields"=>nil, "dynamicInput"=>nil, "entityTypes"=>nil, "name"=>"postMessageToChannelCitizen", "connector"=>"slack", "connectionId"=>"0e4707eb-e04e-4b9e-800c-ed947476bc78", "fieldValues"=>{"message"=>"\"Current: $(step[\"0a391bfd-5c4c-44e3-a2c8-85e69a32ede3\"][\"output\"][\"currentIterationTimestamp\"]), Previous: $(step[\"0a391bfd-5c4c-44e3-a2c8-85e69a32ede3\"][\"output\"][\"previousIterationTimestamp\"])\"", "botName"=>"\"Gregory\"", "botIconURL"=>"\"https://ca.slack-edge.com/E7T5PNK3P-U03MUHTG8UF-fd690ae378a9-512\"", "channelName"=>"\"C03U6M65ET1\""}, "visibleFields"=>nil, "hiddenFields"=>nil, "dynamicOutput"=>nil, "dynamicOutputAttributes"=>nil, "fieldProperties"=>{"channelName"=>{"label"=>"automation", "visible"=>false}}, "sequenceNumber"=>"2", "isCustomDisplayName"=>false, "type"=>"ACTION", "id"=>"fd312f26-9064-40e5-980d-9f64fd75eda7", "displayName"=>"Action: Post message to channel in Slack"}], "createdDate"=>"2023-01-30T05:57:57.659Z", "lastUpdatedDate"=>"2023-01-30T06:11:07.288Z", "modelVersion"=>"1.7", "connectorModels"=>[{"name"=>"scheduler", "version"=>"1.0.1"}, {"name"=>"slack", "version"=>"1.1.0"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
host | string | ||
Accept | string | ||
Pragma | string | ||
sec-ch-ua | string | ||
User-Agent | string | ||
Content-Type | string | ||
X-XSRF-TOKEN | string | ||
x-session-id | string | ||
Authorization | string | ||
Cache-Control | string | ||
Sec-Fetch-Dest | string | ||
Sec-Fetch-Mode | string | ||
Sec-Fetch-Site | string | ||
X-Requested-With | string | ||
sec-ch-ua-mobile | string | ||
sec-ch-ua-platform | string |