All URIs are relative to https://app.launchdarkly.com
| Method | HTTP request | Description |
|---|---|---|
| createWorkflowTemplate | POST /api/v2/templates | Create workflow template |
| deleteWorkflowTemplate | DELETE /api/v2/templates/{templateKey} | Delete workflow template |
| getWorkflowTemplates | GET /api/v2/templates | Get workflow templates |
WorkflowTemplateOutput createWorkflowTemplate(createWorkflowTemplateInput)
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. Create a template for a feature flag workflow.
import {
WorkflowTemplatesApi,
Configuration,
CreateWorkflowTemplateInput
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new WorkflowTemplatesApi(configuration);
let createWorkflowTemplateInput: CreateWorkflowTemplateInput; //
const { status, data } = await apiInstance.createWorkflowTemplate(
createWorkflowTemplateInput
);| Name | Type | Description | Notes |
|---|---|---|---|
| createWorkflowTemplateInput | CreateWorkflowTemplateInput |
WorkflowTemplateOutput
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Workflow template response JSON | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorkflowTemplate()
Delete a workflow template
import {
WorkflowTemplatesApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new WorkflowTemplatesApi(configuration);
let templateKey: string; //The template key (default to undefined)
const { status, data } = await apiInstance.deleteWorkflowTemplate(
templateKey
);| Name | Type | Description | Notes |
|---|---|---|---|
| templateKey | [string] | The template key | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Action completed successfully | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowTemplatesListingOutputRep getWorkflowTemplates()
Get workflow templates belonging to an account, or can optionally return templates_endpoints.workflowTemplateSummariesListingOutputRep when summary query param is true
import {
WorkflowTemplatesApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new WorkflowTemplatesApi(configuration);
let summary: boolean; //Whether the entire template object or just a summary should be returned (optional) (default to undefined)
let search: string; //The substring in either the name or description of a template (optional) (default to undefined)
const { status, data } = await apiInstance.getWorkflowTemplates(
summary,
search
);| Name | Type | Description | Notes |
|---|---|---|---|
| summary | [boolean] | Whether the entire template object or just a summary should be returned | (optional) defaults to undefined |
| search | [string] | The substring in either the name or description of a template | (optional) defaults to undefined |
WorkflowTemplatesListingOutputRep
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow templates list response JSON | - |
| 401 | Invalid access token | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]