Returns all the Feature Flag details for the given project
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1,
- "version": 5,
- "featureCounts": {
- "totalActive": 5,
- "totalAnomaly": 4,
- "totalArchived": 10,
- "totalEnabled": 2,
- "totalFeatures": 10,
- "totalPermanent": 7,
- "totalPotentiallyStale": 3,
- "totalRecentlyAccessed": 2
}, - "features": [
- {
- "archived": false,
- "createdAt": 0,
- "defaultOffVariation": true,
- "defaultOnVariation": true,
- "description": "A flag to control a new feature in production",
- "envProperties": {
- "ccm": {
- "anomalies": [
- {
- "acknowledgedAt": 0,
- "anomalyId": "123456",
- "costDifference": 123,
- "createdAt": 0,
- "foundAt": 0,
- "isAcknowledged": false,
- "status": "found"
}
], - "perspectiveIdentifier": "123456",
- "perspectiveName": "myCluster"
}, - "defaultServe": {
- "distribution": {
- "bucketBy": "string",
- "variations": [
- {
- "variation": null,
- "weight": null
}
]
}, - "variation": "string"
}, - "environment": "string",
- "jiraEnabled": true,
- "modifiedAt": 0,
- "offVariation": "string",
- "pipelineConfigured": true,
- "pipelineDetails": {
- "createdAt": 0,
- "description": "string",
- "identifier": "string",
- "lastUpdatedAt": 0,
- "name": "string"
}, - "pipelineErrorReason": "string",
- "pipelineErrorState": true,
- "rules": [
- {
- "clauses": [
- {
- "attribute": null,
- "id": null,
- "negate": null,
- "op": null,
- "values": [ ]
}
], - "priority": 1,
- "ruleId": "string",
- "serve": {
- "distribution": {
- "bucketBy": null,
- "variations": [ ]
}, - "variation": "string"
}
}
], - "state": "on",
- "variationMap": [
- {
- "targetSegments": [
- "string"
], - "targets": [
- {
- "identifier": null,
- "name": null
}
], - "variation": "off-variation"
}
], - "version": 0
}, - "evaluation": true,
- "evaluationIdentifier": "on-variation",
- "identifier": "bool-flag",
- "kind": "boolean",
- "modifiedAt": 0,
- "name": "My Boolean Flag",
- "owner": "johndoe",
- "permanent": true,
- "prerequisites": [
- {
- "feature": "string",
- "variations": [
- "string"
]
}
], - "project": "test-project",
- "results": [
- {
- "count": 0,
- "variationIdentifier": "defaultOnVariation",
- "variationName": "Default On Variation"
}
], - "services": [
- {
- "identifier": "string",
- "name": "string"
}
], - "stale": false,
- "staleReason": "matched-criteria",
- "status": {
- "lastAccess": 0,
- "status": "active"
}, - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "variations": [
- {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}, - {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}
]
}
]
}
Creates a Feature Flag in the Project
OK
Bad request
Unauthenticated
Unauthorized
The specified resource already exists
An error with git syncing
Internal server error
{- "archived": true,
- "defaultOffVariation": "string",
- "defaultOnVariation": "string",
- "description": "string",
- "gitDetails": {
- "commitMsg": "Turning on flag test-flag for production"
}, - "identifier": "string",
- "kind": "boolean",
- "name": "string",
- "owner": "string",
- "permanent": true,
- "prerequisites": [
- {
- "feature": "string",
- "variations": [
- "string"
]
}
], - "project": "string",
- "services": [
- {
- "identifier": "string",
- "name": "string"
}
], - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "variations": [
- {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}, - {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}
]
}
{- "details": {
- "governanceMetadata": { },
- "pipelineMetadata": {
- "pipelineExecutionId": "string",
- "pipelineTriggered": true
}
}
}
Delete Feature Flag for the given identifier and account ID
No content
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
An error with git syncing
Internal server error
{- "code": 404,
- "details": { },
- "message": "Error retrieving projects, organization 'default_org' does not exist"
}
Returns details such as Variation name, identifier etc for the given Feature Flag
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "archived": false,
- "createdAt": 0,
- "defaultOffVariation": true,
- "defaultOnVariation": true,
- "description": "A flag to control a new feature in production",
- "envProperties": {
- "ccm": {
- "anomalies": [
- {
- "acknowledgedAt": 0,
- "anomalyId": "123456",
- "costDifference": 123,
- "createdAt": 0,
- "foundAt": 0,
- "isAcknowledged": false,
- "status": "found"
}
], - "perspectiveIdentifier": "123456",
- "perspectiveName": "myCluster"
}, - "defaultServe": {
- "distribution": {
- "bucketBy": "string",
- "variations": [
- {
- "variation": "off-variation",
- "weight": 50
}
]
}, - "variation": "string"
}, - "environment": "string",
- "jiraEnabled": true,
- "modifiedAt": 0,
- "offVariation": "string",
- "pipelineConfigured": true,
- "pipelineDetails": {
- "createdAt": 0,
- "description": "string",
- "identifier": "string",
- "lastUpdatedAt": 0,
- "name": "string"
}, - "pipelineErrorReason": "string",
- "pipelineErrorState": true,
- "rules": [
- {
- "clauses": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "priority": 1,
- "ruleId": "string",
- "serve": {
- "distribution": {
- "bucketBy": "string",
- "variations": [
- {
- "variation": null,
- "weight": null
}
]
}, - "variation": "string"
}
}
], - "state": "on",
- "variationMap": [
- {
- "targetSegments": [
- "string"
], - "targets": [
- {
- "identifier": "string",
- "name": "string"
}
], - "variation": "off-variation"
}
], - "version": 0
}, - "evaluation": true,
- "evaluationIdentifier": "on-variation",
- "identifier": "bool-flag",
- "kind": "boolean",
- "modifiedAt": 0,
- "name": "My Boolean Flag",
- "owner": "johndoe",
- "permanent": true,
- "prerequisites": [
- {
- "feature": "string",
- "variations": [
- "string"
]
}
], - "project": "test-project",
- "results": [
- {
- "count": 0,
- "variationIdentifier": "defaultOnVariation",
- "variationName": "Default On Variation"
}
], - "services": [
- {
- "identifier": "string",
- "name": "string"
}
], - "stale": false,
- "staleReason": "matched-criteria",
- "status": {
- "lastAccess": 0,
- "status": "active"
}, - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "variations": [
- {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}, - {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}
]
}
This operation is used to modify a Feature Flag. The request body can include one or more instructions that can modify flag attributes such as the state (off|on), the variations that are returned and serving rules. For example if you want to turn a flag off you can use this opeartion and send the setFeatureFlagState
{ "kind": "setFeatureFlagState", "parameters": { "state": "off" } }
OK
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
An error with git syncing
Internal server error
{- "gitDetails": {
- "commitMsg": "Making some changes"
}, - "instructions": [
- {
- "kind": "updateName",
- "parameters": {
- "name": "Updated Name"
}
}, - {
- "kind": "updateDescription",
- "parameters": {
- "description": "Updated Description"
}
}, - {
- "kind": "addPrerequisite",
- "parameters": {
- "feature": "feature1",
- "variations": [
- "variation1",
- "variation2"
]
}
}, - {
- "kind": "updatePrerequisite",
- "parameters": {
- "feature": "feature1",
- "variations": [
- "variation1"
]
}
}, - {
- "kind": "removePrerequisite",
- "parameters": {
- "feature": "feature1"
}
}, - {
- "kind": "addVariation",
- "parameters": {
- "description": "Variation 1 description",
- "identifier": "variation_1",
- "name": "variation1",
- "value": "v1"
}
}, - {
- "kind": "updateVariation",
- "parameters": {
- "description": "Variation 1 description",
- "identifier": "variation_1",
- "name": "variation1",
- "value": "v1"
}
}, - {
- "kind": "deleteVariation",
- "parameters": {
- "identifier": "variation_1"
}
}, - {
- "kind": "setDefaultOnVariation",
- "parameters": {
- "identifier": "variation_1"
}
}, - {
- "kind": "setDefaultOffVariation",
- "parameters": {
- "identifier": "variation_1"
}
}, - {
- "kind": "addTag",
- "parameters": {
- "name": "TagName",
- "value": "TagValue"
}
}, - {
- "kind": "updateTag",
- "parameters": {
- "name": "TagName",
- "value": "TagValue"
}
}, - {
- "kind": "removeTag",
- "parameters": {
- "name": "TagName",
- "value": "TagValue"
}
}, - {
- "kind": "setFeatureFlagState",
- "parameters": {
- "state": "on"
}
}, - {
- "kind": "setFeatureFlagState",
- "parameters": {
- "state": "off"
}
}, - {
- "kind": "addTargetsToVariationTargetMap",
- "parameters": {
- "targets": [
- "target1-identifier",
- "target2-identifier"
], - "variation": "variation-identifier"
}
}, - {
- "kind": "removeTargetsToVariationTargetMap",
- "parameters": {
- "targets": [
- "target1-identifier",
- "target2-identifier"
], - "variation": "variation-identifier"
}
}, - {
- "kind": "addSegmentToVariationTargetMap",
- "parameters": {
- "targetSegments": [
- "segment1",
- "segment2"
], - "variation": "variation-identifier"
}
}, - {
- "kind": "removeSegmentToVariationTargetMap",
- "parameters": {
- "targetSegments": [
- "segment3",
- "segment4"
], - "variation": "variation-identifier"
}
}, - {
- "kind": "clearVariationTargetMapping",
- "parameters": {
- "variation": "variation-identifier"
}
}, - {
- "kind": "addRule",
- "parameters": {
- "clauses": [
- {
- "attribute": "email",
- "op": "eq",
- "values": [
- "user1@gmail.com",
- "user2@gmail.com"
]
}
], - "priority": 1,
- "serve": {
- "variation": "variation1"
}, - "uuid": "fd2ebf1f-7efb-4324-a7ee-6de0a47bf826"
}
}, - {
- "kind": "removeRule",
- "parameters": {
- "ruleID": "testRuleID"
}
}, - {
- "kind": "addClause",
- "parameters": {
- "clause": {
- "attribute": "email",
- "op": "eq",
- "values": [
- "user1@gmail.com",
- "user2@gmail.com"
]
}, - "ruleID": "testRuleID"
}
}, - {
- "kind": "removeClause",
- "parameters": {
- "clauseID": "testClauseID",
- "ruleID": "testRuleID"
}
}, - {
- "kind": "updateClause",
- "parameters": {
- "clause": [
- {
- "attribute": "email",
- "op": "eq",
- "values": [
- "user1@gmail.com",
- "user2@gmail.com"
]
}
], - "clauseID": "testClauseID",
- "ruleID": "testRuleID"
}
}, - {
- "kind": "reorderRules",
- "parameters": {
- "rules": [
- "rule1",
- "rule2",
- "rule3"
]
}
}, - {
- "kind": "updateDefaultServe",
- "parameters": {
- "bucketBy": "accountID",
- "variations": [
- {
- "variation": "variation1",
- "weight": 30
}, - {
- "variation": "variation2",
- "weight": 60
}, - {
- "variation": "variation3",
- "weight": 10
}
]
}
}, - {
- "kind": "updateRule",
- "parameters": {
- "ruleID": "testRuleID",
- "variation": "variation1"
}
}, - {
- "kind": "updateRule",
- "parameters": {
- "bucketBy": "accountID",
- "ruleID": "testRuleID",
- "variations": [
- {
- "variation": "variation1",
- "weight": 30
}, - {
- "variation": "variation2",
- "weight": 60.66
}, - {
- "variation": "variation3",
- "weight": 10.01
}
]
}
}, - {
- "kind": "updateDefaultServe",
- "parameters": {
- "variation": "variation1"
}
}, - {
- "kind": "updateOffVariation",
- "parameters": {
- "variation": "variation1"
}
}, - {
- "Kind": "updateArchived",
- "parameters": {
- "archived": true
}
}, - {
- "Kind": "updatePermanent",
- "parameters": {
- "permanent": true
}
}
]
}
{- "details": {
- "governanceMetadata": { },
- "pipelineMetadata": {
- "pipelineExecutionId": "string",
- "pipelineTriggered": true
}
}
}
Updates a Feature Flag in the Project
OK
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
An error with git syncing
Internal server error
{- "defaultOffVariation": "string",
- "defaultOnVariation": "string",
- "description": "string",
- "environments": [
- {
- "defaultOffVariation": "red",
- "defaultOnVariation": "blue",
- "identifier": "env1",
- "rules": [
- {
- "targets": [
- "target1",
- "target2"
], - "variation": true
}
], - "state": "on"
}
], - "gitDetails": {
- "commitMsg": "Turning on flag test-flag for production"
}, - "name": "string",
- "permanent": true,
- "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "variations": [
- {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}, - {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}
]
}
{- "details": {
- "governanceMetadata": { },
- "pipelineMetadata": {
- "pipelineExecutionId": "string",
- "pipelineTriggered": true
}
}
}
Given identifier return list all the flags which depend on it.
OK
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1,
- "version": 5,
- "featureCounts": {
- "totalActive": 5,
- "totalAnomaly": 4,
- "totalArchived": 10,
- "totalEnabled": 2,
- "totalFeatures": 10,
- "totalPermanent": 7,
- "totalPotentiallyStale": 3,
- "totalRecentlyAccessed": 2
}, - "features": [
- {
- "archived": false,
- "createdAt": 0,
- "defaultOffVariation": true,
- "defaultOnVariation": true,
- "description": "A flag to control a new feature in production",
- "envProperties": {
- "ccm": {
- "anomalies": [
- {
- "acknowledgedAt": 0,
- "anomalyId": "123456",
- "costDifference": 123,
- "createdAt": 0,
- "foundAt": 0,
- "isAcknowledged": false,
- "status": "found"
}
], - "perspectiveIdentifier": "123456",
- "perspectiveName": "myCluster"
}, - "defaultServe": {
- "distribution": {
- "bucketBy": "string",
- "variations": [
- {
- "variation": null,
- "weight": null
}
]
}, - "variation": "string"
}, - "environment": "string",
- "jiraEnabled": true,
- "modifiedAt": 0,
- "offVariation": "string",
- "pipelineConfigured": true,
- "pipelineDetails": {
- "createdAt": 0,
- "description": "string",
- "identifier": "string",
- "lastUpdatedAt": 0,
- "name": "string"
}, - "pipelineErrorReason": "string",
- "pipelineErrorState": true,
- "rules": [
- {
- "clauses": [
- {
- "attribute": null,
- "id": null,
- "negate": null,
- "op": null,
- "values": [ ]
}
], - "priority": 1,
- "ruleId": "string",
- "serve": {
- "distribution": {
- "bucketBy": null,
- "variations": [ ]
}, - "variation": "string"
}
}
], - "state": "on",
- "variationMap": [
- {
- "targetSegments": [
- "string"
], - "targets": [
- {
- "identifier": null,
- "name": null
}
], - "variation": "off-variation"
}
], - "version": 0
}, - "evaluation": true,
- "evaluationIdentifier": "on-variation",
- "identifier": "bool-flag",
- "kind": "boolean",
- "modifiedAt": 0,
- "name": "My Boolean Flag",
- "owner": "johndoe",
- "permanent": true,
- "prerequisites": [
- {
- "feature": "string",
- "variations": [
- "string"
]
}
], - "project": "test-project",
- "results": [
- {
- "count": 0,
- "variationIdentifier": "defaultOnVariation",
- "variationName": "Default On Variation"
}
], - "services": [
- {
- "identifier": "string",
- "name": "string"
}
], - "stale": false,
- "staleReason": "matched-criteria",
- "status": {
- "lastAccess": 0,
- "status": "active"
}, - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "variations": [
- {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}, - {
- "description": "string",
- "identifier": "off-variation",
- "name": "Off VAriation",
- "value": "true"
}
]
}
]
}
Restore Feature Flag for the given identifier and account ID
No content
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
An error with git syncing
Internal server error
{- "code": 404,
- "details": { },
- "message": "Error retrieving projects, organization 'default_org' does not exist"
}