Workflow templates
Create workflow template
Create a template for a feature flag workflow
post/api/v2/templates
Request body
Example request
{
"stages": [
{
"name": "10% rollout on day 1",
"executeConditionsInSequence": true,
"conditions": [
{
"kind": "schedule",
"scheduleKind": "relative",
"waitDuration": 2,
"waitDurationUnit": "calendarDay"
}
],
"action": {
"instructions": "{\"instructions\": [{ \"kind\": \"turnFlagOn\"}]}"
}
}
]
}Response
Workflow template response JSON
Example response
{
"stages": [
{
"_id": "12ab3c45de678910abc12345",
"name": "10% rollout on day 1",
"conditions": [
{
"_execution": {
"status": "completed"
},
"id": "12ab3c45de678910abc12345",
"kind": "schedule",
"scheduleKind": "relative",
"waitDuration": 2,
"waitDurationUnit": "calendarDay"
}
],
"action": {
"kind": "patch"
},
"_execution": {
"status": "completed"
}
}
]
}