Workflow templates allow you to define a set of workflow stages that you can use as a starting point for new workflows. You can create these workflows for any flag in any environment and any project, and you can create as many workflows as you like from a given template. You can create workflow templates in two ways:Workflows are in maintenance mode
The workflows feature is in maintenance mode, and is planned for future deprecation at a date not yet specified. We will work with existing customers using workflows to migrate to a replacement solution when deprecation occurs.
- by specifying the desired stages, using the
stagesproperty of the request body - by specifying an existing workflow to save as a template, using the
workflowIdproperty of the request body
stages property, you must also include projectKey, environmentKey, and flagKey properties in the request body. When you create a template from an existing workflow, it will use the project, environment, and flag of the existing workflow, so those properties can be omitted from the request body.
To learn more, read Workflows documentation and Workflows API documentation.