Get Parent Flows
GET/v1/clients/:clientID/flows
Endpoint to retrieve all active Parent Flows
Request
Path Parameters
clientID stringrequired
Responses
- 200
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
id uuid
clientId string
cooldownTimeout number
duration to wait until the next iteration of this flow can be processed.
description string
driver string
enabled boolean
sourceSystem string
sourceSystemId string
flows undefined[]
Array of children flows for this flow. In other words, the flows that form the tree under this flow.
lastEdited object
date date-time
editorAuthId number
maxCompletions number
how many times this flow can be completed for the same user.
metadata object
metadata can receive any JSON object.
someField string
name string
parentId uuid
reference to the flow's parent.
replicas number
how many events for this Flow should be completed in order to complete the flow (i.e. user has to login 5 times)
resetThreshhold number
duration after the latest user progress event is received in order to loss the user progress. for this flow.
rewards string[]
validFrom date-time
the flow will be valid starting from this date
validTo date-time
the flow will be valid until this date
[
{
"id": "42fac465-9998-485c-bcbf-e42854afdf54",
"clientId": "INCROWD",
"cooldownTimeout": 10,
"description": "some flow description",
"driver": "some_driver",
"enabled": true,
"sourceSystem": "some_source_system",
"sourceSystemId": "some_source_system_id",
"flows": [
null
],
"lastEdited": {
"date": "2023-09-22T21:10:10.696Z",
"editorAuthId": 1
},
"maxCompletions": 1,
"metadata": {
"someField": "some_value"
},
"name": "some_flow_name",
"parentId": "52ef169f-70bb-4941-a903-6e3d75b78147",
"replicas": 5,
"resetThreshhold": 5,
"rewards": [
"reward_1",
"reward_2"
],
"validFrom": "2023-09-09T10:00:00Z",
"validTo": "2023-09-10T10:00:00Z"
}
]
Loading...