{"components":{"parameters":{"accountQueryParam":{"description":"Account Identifier","examples":{"default":{"value":"default"}},"in":"query","name":"accountIdentifier","required":true,"schema":{"type":"string"}},"archivedQueryParam":{"description":"Status of the feature flag","in":"query","name":"archived","schema":{"type":"boolean"}},"attributeCounts":{"description":"Returns attribute","in":"query","name":"attributeCounts","schema":{"type":"boolean"}},"commitMsgQueryParam":{"allowEmptyValue":true,"description":"Git commit message","in":"query","name":"commitMsg","schema":{"type":"string"}},"customAttributeQueryParam":{"description":"Returns only custom attributes","in":"query","name":"customAttributes","schema":{"type":"boolean"}},"environmentOptionalQueryParam":{"allowEmptyValue":true,"description":"Environment","in":"query","name":"environmentIdentifier","schema":{"type":"string"}},"environmentQueryParam":{"allowEmptyValue":true,"description":"Environment Identifier","in":"query","name":"environmentIdentifier","required":true,"schema":{"type":"string"}},"excludedFeaturesOptionalParam":{"allowEmptyValue":true,"description":"Comma separated identifiers to exclude from the response","in":"query","name":"excludedFeatures","schema":{"type":"string"}},"featuresOptionalParam":{"description":"Comma separated identifiers for multiple Features","in":"query","name":"featureIdentifiers","schema":{"type":"string"}},"flagCounts":{"description":"Returns counts for the different types of flags e.g num active, potentially-stale, recently-accessed etc","in":"query","name":"flagCounts","schema":{"type":"boolean"}},"flagEnabled":{"description":"Filter for flags based on if they are enabled or disabled","in":"query","name":"enabled","schema":{"type":"boolean"}},"flagLifetime":{"description":"Filter for flags based on their lifetime (permanent/temporary)","in":"query","name":"lifetime","schema":{"type":"string"}},"flagNameQueryParam":{"description":"Identifier of the feature flag","in":"query","name":"flagNameIdentifier","schema":{"type":"string"}},"flagStatus":{"description":"Filter for flags based on their status (active,never-requested,recently-accessed,potentially-stale)","in":"query","name":"status","schema":{"type":"string"}},"flagSummary":{"description":"Returns summary info on flags if set to true","in":"query","name":"summary","schema":{"type":"boolean"}},"flagTags":{"description":"Filter for flags based on their tag values supplied as comma separated list","in":"query","name":"tags","schema":{"type":"string"}},"forceDeleteQueryParam":{"description":"Permanently deletes the the feature flag","in":"query","name":"forceDelete","schema":{"type":"boolean"}},"identifier":{"description":"Unique identifier for the object in the API.","in":"path","name":"identifier","required":true,"schema":{"type":"string"}},"identifierQueryParam":{"description":"Identifier of the field","in":"query","name":"identifier","schema":{"type":"string"}},"key":{"description":"Unique key for the attribute in the API.","in":"path","name":"key","required":true,"schema":{"type":"string"}},"kindQueryParam":{"description":"Kind of the feature flag","in":"query","name":"kind","schema":{"enum":["json","string","int","boolean"],"type":"string"}},"metricsOptionalParam":{"description":"Parameter to indicate if metrics data is requested in response","in":"query","name":"metrics","schema":{"type":"boolean"}},"nameQueryParam":{"allowEmptyValue":true,"description":"Name of the field","in":"query","name":"name","schema":{"type":"string"}},"orgQueryParam":{"description":"Organization Identifier","examples":{"default":{"value":"default_org"}},"in":"query","name":"orgIdentifier","required":true,"schema":{"type":"string"}},"pageNumber":{"description":"PageNumber","in":"query","name":"pageNumber","schema":{"type":"integer"}},"pageSize":{"description":"PageSize","in":"query","name":"pageSize","schema":{"type":"integer"}},"projectQueryParam":{"description":"The Project identifier","in":"query","name":"projectIdentifier","required":true,"schema":{"type":"string"}},"proxyKeySortByField":{"description":"SortByField","in":"query","name":"sortByField","schema":{"enum":["name","createdAt","updatedAt"],"type":"string"}},"safSortByField":{"description":"SortByField","in":"query","name":"sortByField","schema":{"enum":["name"],"type":"string"}},"safSortOrder":{"description":"SortOrder","in":"query","name":"sortOrder","schema":{"enum":["ASCENDING","DESCENDING"],"type":"string"}},"segmentRulesV2QueryParam":{"allowEmptyValue":true,"description":"When set to rules=v2 will return AND rule compatible serving_rules field. When not set or set to any other value will return old rules field only compatible with OR rules.","in":"query","name":"rules","schema":{"type":"string"}},"sortByField":{"description":"SortByField","in":"query","name":"sortByField","schema":{"enum":["name","identifier","archived","kind","modifiedAt"],"type":"string"}},"sortOrder":{"description":"SortOrder","in":"query","name":"sortOrder","schema":{"enum":["ASCENDING","DESCENDING"],"type":"string"}},"tagFilterOptionalParam":{"allowEmptyValue":true,"description":"Partial Search of Tag Identifiers to filter on","in":"query","name":"tagIdentifierFilter","schema":{"type":"string"}},"targetFilterOptionalParam":{"allowEmptyValue":true,"description":"Identifier of the target to filter on","in":"query","name":"targetIdentifierFilter","schema":{"type":"string"}},"targetIdentifierQueryParam":{"allowEmptyValue":true,"description":"Identifier of the target","in":"query","name":"targetIdentifier","schema":{"type":"string"}},"targetNameQueryParam":{"allowEmptyValue":true,"description":"Name of the target","in":"query","name":"targetName","schema":{"type":"string"}},"targetOptionalParam":{"allowEmptyValue":true,"description":"Identifier of a target","in":"query","name":"targetIdentifier","schema":{"type":"string"}},"targetSortByField":{"allowEmptyValue":true,"description":"SortByField","in":"query","name":"sortByField","schema":{"enum":["createdAt","name","identifier"],"type":"string"}},"targetSortOrder":{"allowEmptyValue":true,"description":"SortOrder","in":"query","name":"sortOrder","schema":{"enum":["ASC","DESC"],"type":"string"}}},"requestBodies":{"APIKeyRequest":{"content":{"application/json":{"schema":{"properties":{"description":{"example":"This key is for server side production environment","type":"string"},"expiredAt":{"type":"integer"},"identifier":{"example":"production-environment","type":"string"},"name":{"example":"production-env-key","type":"string"},"type":{"$ref":"#/components/schemas/ApiKeyRequestType"}},"required":["name","identifier","type"],"type":"object"}}}},"APIKeyUpdateRequest":{"content":{"application/json":{"schema":{"properties":{"description":{"example":"This key is for server side production environment","type":"string"},"expiredAt":{"type":"integer"},"name":{"example":"production-env-key","type":"string"}},"type":"object"}}}},"AttributePatchRequest":{"content":{"application/json":{"example":{"instructions":[{"kind":"updateAttribute","parameters":{"key":"Updated attributeKey"}}]},"schema":{"$ref":"#/components/schemas/GitSyncPatchOperation"}}}},"AttributeRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attribute"}}},"required":true},"EnvironmentPerspectiveUpsertRequest":{"content":{"application/json":{"schema":{"properties":{"perspectiveIdentifier":{"example":"12345","type":"string"},"perspectiveName":{"example":"myCluster","type":"string"}},"required":["perspectiveIdentifier","perspectiveName"],"type":"object"}}}},"FeatureFlagPutRequest":{"content":{"application/json":{"schema":{"properties":{"defaultOffVariation":{"type":"string"},"defaultOnVariation":{"type":"string"},"description":{"type":"string"},"environments":{"items":{"$ref":"#/components/schemas/ActivationUpdate"},"type":"array"},"gitDetails":{"$ref":"#/components/schemas/GitDetails"},"name":{"type":"string"},"permanent":{"type":"boolean"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"variations":{"items":{"$ref":"#/components/schemas/Variation"},"minItems":2,"type":"array"}},"type":"object"}}}},"FeatureFlagRequest":{"content":{"application/json":{"schema":{"properties":{"archived":{"type":"boolean"},"defaultOffVariation":{"type":"string"},"defaultOnVariation":{"type":"string"},"description":{"type":"string"},"gitDetails":{"$ref":"#/components/schemas/GitDetails"},"identifier":{"type":"string"},"kind":{"$ref":"#/components/schemas/FeatureFlagRequestKind"},"name":{"type":"string"},"owner":{"type":"string"},"permanent":{"type":"boolean"},"prerequisites":{"items":{"$ref":"#/components/schemas/Prerequisite"},"type":"array"},"project":{"type":"string"},"services":{"items":{"$ref":"#/components/schemas/Service"},"type":"array"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"variations":{"items":{"$ref":"#/components/schemas/Variation"},"minItems":2,"type":"array"}},"required":["name","project","identifier","kind","variations","defaultOnVariation","defaultOffVariation","permanent"],"type":"object"}}}},"FeaturePatchRequest":{"content":{"application/json":{"example":{"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}}]},"schema":{"$ref":"#/components/schemas/GitSyncPatchOperation"}}}},"ProxyKeysPatchRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyKeyInstruction"}}}},"ProxyKeysPostRequest":{"content":{"application/json":{"schema":{"example":{"description":"A description","identifier":"MyProxyKey","name":"My Proxy Key","organizations":{"org123":{"projects":{"project1":{"environments":[],"scope":"all"},"project2":{"environments":[],"scope":"prod"},"project3":{"environments":[],"scope":"non-prod"},"project4":{"environments":["env1","env2","env3"],"scope":"selected"}}},"org456":{"projects":{"project1":{"environments":[],"scope":"all"},"project2":{"environments":[],"scope":"prod"},"project3":{"environments":[],"scope":"non-prod"},"project4":{"environments":["env1","env2","env3"],"scope":"selected"}}}}},"properties":{"description":{"example":"Description of the Proxy Key","type":"string"},"identifier":{"example":"ProxyKeyOne","type":"string"},"name":{"example":"Proxy key one","type":"string"},"organizations":{"$ref":"#/components/schemas/OrganizationDictionary"}},"required":["identifier","name","organizations"],"type":"object"}}}},"SegmentPatchRequest":{"content":{"application/json":{"example":{"instructions":[{"kind":"addToIncludeList","parameters":{"targets":["target1","target2"]}},{"kind":"removeFromIncludeList","parameters":{"targets":["target1","target2"]}},{"kind":"addToExcludeList","parameters":{"targets":["target3"]}},{"kind":"removeFromExcludeList","parameters":{"targets":["target4","target5"]}},{"kind":"addClause","parameters":{"attribute":"email","negate":false,"op":"endsWith","values":["gmail.com"]}},{"kind":"updateClause","parameters":{"attribute":"email","clauseID":"test-clause-ID","op":"equals","value":["testuser@testcompany.com"]}},{"kind":"removeClause","parameters":{"clauseID":"test-clause-ID"}}]},"schema":{"$ref":"#/components/schemas/GitSyncPatchOperation"}}}},"SegmentRequest":{"content":{"application/json":{"schema":{"properties":{"environment":{"type":"string"},"excluded":{"items":{"type":"string"},"type":"array"},"identifier":{"example":"beta-testers","type":"string"},"included":{"items":{"type":"string"},"type":"array"},"name":{"description":"Name of the target segment.","example":"Beta Testers","type":"string"},"project":{"type":"string"},"rules":{"description":"An array of rules that can cause a user to be included in this segment.","items":{"$ref":"#/components/schemas/Clause"},"type":"array"},"servingRules":{"description":"An array of rules that can cause a user to be included in this segment.","items":{"$ref":"#/components/schemas/GroupServingRule"},"type":"array"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"}},"required":["name","environment","project"],"type":"object"}}},"required":true},"TagRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}},"required":true},"TargetPatchRequest":{"content":{"application/json":{"example":{"gitDetails":{"commitMsg":"Making some changes"},"instructions":[{"kind":"addToIncludeList","parameters":{"segments":["alpha-testers","beta-testers"]}},{"kind":"removeFromIncludeList","parameters":{"segments":["alpha-testers","beta-testers"]}},{"kind":"addToExcludeList","parameters":{"segments":["alpha-testers","beta-testers"]}},{"kind":"removeFromExcludeList","parameters":{"segments":["alpha-testers","beta-testers"]}},{"kind":"addTargetToFlagsVariationTargetMap","parameters":{"features":[{"identifier":"flag1","variation":"true"},{"identifier":"flag2","variation":"false"}]}},{"kind":"removeTargetFromFlagsVariationTargetMap","parameters":{"features":[{"identifier":"flag1","variation":"true"},{"identifier":"flag2","variation":"false"}]}}]},"schema":{"$ref":"#/components/schemas/GitSyncPatchOperation"}}}},"TargetRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Target"}}},"required":true}},"responses":{"APIKeyResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}},"description":"Created"},"APIKeysResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeys"}}},"description":"OK"},"AttributeEditResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeResponseMetadata"}}},"description":"OK"},"AttributeResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attribute"}}},"description":"OK"},"AttributesResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attributes"}}},"description":"OK"},"AvailableFlagResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagBasicInfos"}}},"description":"OK"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Bad request"},"Conflict":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The specified resource already exists"},"EnvironmentPerspectiveResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentPerspective"}}},"description":"OK"},"FeatureEditResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureResponseMetadata"}}},"description":"OK"},"FeatureResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feature"}}},"description":"OK"},"FeaturesResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Features"}}},"description":"OK"},"GitSyncError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error with git syncing"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Internal server error"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The specified resource was not found"},"ProxyKeyResponse":{"content":{"application/json":{"schema":{"example":{"createdAt":1698235128877,"description":"A description","id":"b56546aa-62e6-407e-bf14-63691a47b0e0","identifier":"MyProxyKey","name":"My Proxy Key","organizations":{"org123":{"projects":{"project1":{"environments":[],"scope":"all"},"project2":{"environments":[],"scope":"prod"},"project3":{"environments":[],"scope":"non-prod"},"project4":{"environments":["env1","env2","env3"],"scope":"selected"}}},"org456":{"projects":{"project1":{"environments":[],"scope":"all"},"project2":{"environments":[],"scope":"prod"},"project3":{"environments":[],"scope":"non-prod"},"project4":{"environments":["env1","env2","env3"],"scope":"selected"}}}},"updatedAt":1698235128877},"properties":{"createdAt":{"description":"The date the key was created at in milliseconds","format":"int64","type":"integer"},"description":{"description":"A description of the Proxy Key","example":"This is a proxy key for production","type":"string"},"id":{"description":"The ProxyKeys ID","example":"31B0B299-7635-416D-9E99-CFCAA7ADABEA","type":"string"},"identifier":{"description":"The Proxy Keys identifier","example":"ProxyKeyOne","type":"string"},"name":{"description":"The ProxyKeys name","example":"Proxy Key One","type":"string"},"organizations":{"$ref":"#/components/schemas/OrganizationDictionary"},"updatedAt":{"description":"The date the key was last updated at in milliseconds","format":"int64","type":"integer"},"version":{"description":"The ProxyKey version","format":"int","type":"integer"}},"required":["id","name","identifier","description","createdAt","updatedAt","version","organizations"],"type":"object"}}},"description":"OK"},"ProxyKeysCreateResponse":{"content":{"application/json":{"schema":{"properties":{"key":{"example":"0202f58b-d670-44ef-bd1f-323a48c28004","type":"string"}},"type":"object"}}},"description":"Created"},"ProxyKeysResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyKeys"}}},"description":"OK"},"SegmentFlagsResponse":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SegmentFlag"},"type":"array"}}},"description":"OK"},"SegmentResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segment"}}},"description":"OK"},"SegmentsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segments"}}},"description":"OK"},"TagEditResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponseMetadata"}}},"description":"OK"},"TagsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tags"}}},"description":"OK"},"TargetDetailResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetDetail"}}},"description":"OK"},"TargetResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Target"}}},"description":"OK"},"TargetsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Targets"}}},"description":"OK"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthenticated"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"}},"schemas":{"ActivationUpdate":{"description":"An object used to specify updates for flag activation updates","properties":{"defaultOffVariation":{"description":"The default variation to serve when the flag is disabled in this environment","example":"red","type":"string"},"defaultOnVariation":{"description":"The default variation to serve when the flag is enabled in this environment","example":"blue","type":"string"},"identifier":{"description":"The name of the environment","example":"env1","type":"string"},"rules":{"items":{"$ref":"#/components/schemas/TargetRulesUpdate"},"type":"array"},"state":{"description":"The state of the flag in this environment i.e. \"on\" or \"off\"","example":"on","type":"string"}},"required":["identifier"],"type":"object"},"ApiKey":{"description":"The API key is used by SDKs to connect to Harness Feature Flags","properties":{"apiKey":{"description":"The Key will be shown only on create. On subsequent GET calls, only the masked APIKeys will be returned","example":"b03af1cd-bd3f-472b-a4b0-c9c9c09c642e","type":"string"},"applicationIds":{"description":"A list of Application IDs","items":{"$ref":"#/components/schemas/ApplicationId"},"type":"array"},"identifier":{"description":"The environment that this key was created in","example":"production","type":"string"},"key":{"description":"A hash of API key","example":"3c940273c34e8a9b21","type":"string"},"lastUsed":{"description":"Timestamp of the last time the API key was used","example":1726744149,"format":"int64","type":"integer"},"name":{"description":"The user friendly identifier for the API Key","example":"Production Server Key","type":"string"},"type":{"description":"The type of key depending on the SDK that is being used.","enum":["server","client"],"example":"server","type":"string"}},"required":["name","apiKey","identifier","type"],"type":"object"},"ApiKeyRequestType":{"description":"The type of key depending on the SDK that is being used.","enum":["Server","Client"],"example":"Server","type":"string"},"ApiKeys":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"apiKeys":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array"}}}],"description":"A list of API Keys","type":"object"},"ApplicationId":{"description":"An ApplicationId represents an application that is associated with a specific API key","properties":{"applicationId":{"description":"The application ID of the application","example":"my-springboot-application","type":"string"},"lastUsed":{"description":"The timestamp of when this application was last accessed","example":1726744149,"format":"int64","type":"integer"}},"required":["applicationId","lastUsed"],"type":"object"},"Attribute":{"description":"An Attribute, object property to evaluate targets on.","properties":{"key":{"description":"The attribute key","example":"age","type":"string"}},"required":["key"],"type":"object"},"AttributeResponseMetadata":{"properties":{"details":{"description":"Additional metadata about the request","properties":{"governanceMetadata":{"description":"Summary of governance checks including any warnings","type":"object"}},"type":"object"}},"type":"object"},"Attributes":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"attributes":{"items":{"$ref":"#/components/schemas/Attribute"},"type":"array"}}}],"description":"A list of Attributes","required":["environment"],"type":"object"},"CCM":{"description":"CCM Details for environment","properties":{"anomalies":{"description":"List of anomalies detected","items":{"properties":{"acknowledgedAt":{"description":"The timestamp when the anomaly was acknowledged","example":0,"type":"integer"},"anomalyId":{"description":"The Id of the anomaly","example":"123456","type":"string"},"costDifference":{"description":"The difference value for the anomaly","example":123,"type":"integer"},"createdAt":{"description":"The creation timestamp of the anomaly record","example":0,"type":"integer"},"foundAt":{"description":"The timestamp when the anomaly was found","example":0,"type":"integer"},"isAcknowledged":{"description":"Flag to indicate if the anomaly is acknowledged","example":false,"type":"boolean"},"status":{"description":"The current status of the anomaly","example":"found","type":"string"}},"required":["anomalyId","createdAt","isAcknowledged","status"],"type":"object"},"type":"array"},"perspectiveIdentifier":{"example":"123456","type":"string"},"perspectiveName":{"example":"myCluster","type":"string"}},"required":["perspectiveIdentifier","perspectiveName"],"type":"object"},"Clause":{"description":"A clause describes what conditions are used to evaluate a flag","properties":{"attribute":{"description":"The attribute to use in the clause.  This can be any target attribute","example":"identifier","type":"string"},"id":{"description":"The unique ID for the clause","example":32434243,"type":"string"},"negate":{"description":"Is the operation negated?","example":false,"type":"boolean"},"op":{"description":"The type of operation such as equals, starts_with, contains","example":"starts_with","type":"string"},"values":{"description":"The values that are compared against the operator","items":{"type":"string"},"type":"array"}},"required":["attribute","op","negate","values"],"type":"object"},"Distribution":{"description":"Describes a distribution rule","properties":{"bucketBy":{"description":"The attribute to use when distributing targets across buckets","type":"string"},"variations":{"description":"A list of variations and the weight that should be given to each","items":{"$ref":"#/components/schemas/WeightedVariation"},"type":"array"}},"required":["bucketBy","variations"],"type":"object"},"EnvironmentPerspective":{"properties":{"createdAt":{"description":"The date the key was created at in milliseconds","format":"int64","type":"integer"},"environmentId":{"description":"The ID of the Environment","example":"67891","type":"string"},"perspectiveId":{"description":"The ID of the Perspective","example":"12345","type":"string"},"perspectiveIdentifier":{"description":"The Identifier/Common Name of the Perspective","example":"myCluster","type":"string"},"updatedAt":{"description":"The date the key was last updated at in milliseconds","format":"int64","type":"integer"}},"required":["environmentId","perspectiveId","perspectiveIdentifier","createdAt","updatedAt"],"type":"object"},"Error":{"properties":{"code":{"description":"The http error code","example":404,"type":"string"},"details":{"description":"Additional details about the error","type":"object"},"message":{"description":"The reason the request failed","example":"Error retrieving projects, organization 'default_org' does not exist","type":"string"}},"required":["code","message"],"type":"object"},"Feature":{"description":"A Feature Flag response","properties":{"archived":{"description":"Indicates if the flag has been archived and is no longer used","example":false,"type":"boolean"},"createdAt":{"description":"The date the flag was created in milliseconds","format":"int64","type":"integer"},"defaultOffVariation":{"description":"The default value returned when a flag is off","example":true,"type":"string"},"defaultOnVariation":{"description":"The default value returned when a flag is on","example":true,"type":"string"},"description":{"description":"A description for this flag","example":"A flag to control a new feature in production","type":"string"},"envProperties":{"description":"The Feature Flag rules for a given environment","properties":{"ccm":{"$ref":"#/components/schemas/CCM"},"defaultServe":{"$ref":"#/components/schemas/Serve"},"environment":{"description":"The environment identifier","type":"string"},"jiraEnabled":{"description":"Indicates whether jira functionality is enabled for the given account, project, org, and environment","type":"boolean"},"jiraIssues":{"description":"An array of Jira Issues linked to this Feature. Returns empty if none exist","items":{"$ref":"#/components/schemas/JiraIssue"},"type":"array"},"modifiedAt":{"description":"The last time the flag was modified in this environment","format":"int64","type":"integer"},"offVariation":{"description":"The variation to serve for this flag in this environment when the flag is off","type":"string"},"pipelineConfigured":{"type":"boolean"},"pipelineDetails":{"$ref":"#/components/schemas/FeaturePipeline"},"pipelineErrorReason":{"type":"string"},"pipelineErrorState":{"type":"boolean"},"rules":{"description":"A list of rules to use when evaluating this flag in this environment","items":{"$ref":"#/components/schemas/ServingRule"},"type":"array"},"state":{"$ref":"#/components/schemas/FeatureState"},"variationMap":{"description":"A list of the variations that will be served to specific targets or target groups in an environment.","items":{"$ref":"#/components/schemas/VariationMap"},"type":"array"},"version":{"description":"The version of the flag.  This is incremented each time it is changed","format":"int64","type":"integer"}},"required":["state","defaultServe","environment","offVariation","pipelineConfigured"],"type":"object"},"evaluation":{"description":"The value that the flag will return for the current user","example":true,"type":"string"},"evaluationIdentifier":{"description":"The identifier for the returned evaluation","example":"on-variation","type":"string"},"identifier":{"description":"The Feature Flag identifier","example":"bool-flag","type":"string"},"kind":{"description":"The type of Feature flag","enum":["boolean","int","string","json"],"example":"boolean","type":"string"},"modifiedAt":{"description":"The date the flag was last modified in milliseconds","format":"int64","type":"integer"},"name":{"description":"The name of the Feature Flag","example":"My Boolean Flag","type":"string"},"owner":{"description":"The user who created the flag","example":"johndoe","items":{"type":"string"},"type":"array"},"permanent":{"description":"Indicates if this is a permanent flag, or one that should expire","example":true,"type":"boolean"},"prerequisites":{"items":{"$ref":"#/components/schemas/Prerequisite"},"type":"array"},"project":{"description":"The project this Feature belongs to","example":"test-project","type":"string"},"results":{"description":"The results shows which variations have been evaluated, and how many times each of these have been evaluated.","items":{"$ref":"#/components/schemas/Results"},"type":"array"},"services":{"description":"A list of services linked to this Feature Flag","items":{"$ref":"#/components/schemas/Service"},"type":"array"},"stale":{"description":"Whether the flag is stale or not","example":false,"type":"boolean"},"staleReason":{"description":"The reason that the flag was marked as stale","example":"matched-criteria","type":"string"},"tags":{"description":"A list of tags for this Feature Flag","items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"variations":{"description":"The variations that can be returned for this flag","items":{"$ref":"#/components/schemas/Variation"},"minItems":2,"type":"array"}},"required":["project","identifier","createdAt","kind","name","variations","defaultOnVariation","defaultOffVariation"],"type":"object"},"FeatureCounts":{"properties":{"totalActive":{"description":"The total number of flags with a active status in a project/environment","example":5,"type":"integer"},"totalAnomaly":{"description":"The total number of flags with an unacknowledged anomaly status in the project/environment","example":4,"type":"integer"},"totalArchived":{"description":"The total number of archived flags in the project/environment","example":10,"type":"integer"},"totalEnabled":{"description":"The total number of flags that are turned on in a project/environment","example":2,"type":"integer"},"totalFeatures":{"description":"The total number of flags in the project/environment","example":10,"type":"integer"},"totalPermanent":{"description":"The total number of permanent flags in a project/environment","example":7,"type":"integer"},"totalPotentiallyStale":{"description":"The total number of flags with a potentially-stale status in a project/environment","example":3,"type":"integer"},"totalRecentlyAccessed":{"description":"The total number of flags with a recently-accessed status in a project/environment","example":2,"type":"integer"}},"type":"object"},"FeatureFlagRequestKind":{"enum":["boolean","int","string","json"],"example":"boolean","type":"string"},"FeaturePipeline":{"description":"A pipeline configured to update a feature","properties":{"createdAt":{"description":"creation date in milliseconds","type":"integer"},"description":{"description":"The description of the pipeline","type":"string"},"identifier":{"description":"The identifier of the pipeline","type":"string"},"lastUpdatedAt":{"description":"last updated date in milliseconds","type":"integer"},"name":{"description":"The name of the pipeline","type":"string"}},"required":["identifier","name"],"type":"object"},"FeatureResponseMetadata":{"properties":{"details":{"description":"Additional metadata about the request","properties":{"governanceMetadata":{"description":"Summary of governance checks including any warnings","type":"object"},"pipelineMetadata":{"description":"Info about the pipeline whether a pipeline was triggered","properties":{"pipelineExecutionId":{"description":"The ID of the pipeline execution","type":"string"},"pipelineTriggered":{"description":"Whether a pipeline was triggered","type":"boolean"}},"type":"object"}},"type":"object"}},"type":"object"},"FeatureState":{"description":"The state of a flag either off or on","enum":["on","off"],"type":"string"},"Features":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"featureCounts":{"$ref":"#/components/schemas/FeatureCounts"},"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array"}}}],"description":"A list of Feature Flags","type":"object"},"FlagBasicInfo":{"description":"A flag Identifier and name","properties":{"identifier":{"description":"The flag identifier","example":"test-flag","type":"string"},"name":{"description":"The user friendly flag name","example":"Test Flag","type":"string"}},"required":["identifier","name"],"type":"object"},"FlagBasicInfos":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"featureFlags":{"items":{"$ref":"#/components/schemas/FlagBasicInfo"},"type":"array"}}}],"description":"A list of Flags","type":"object"},"GitDetails":{"description":"The commit message to use as part of a gitsync operation","properties":{"commitMsg":{"description":"A description of the change or action","example":"Turning on flag test-flag for production","type":"string"}},"required":["commitMsg"],"type":"object"},"GitSyncPatchOperation":{"properties":{"comment":{"description":"A comment explaining the reason for this patch operation","example":"This is a comment string","type":"string"},"executionTime":{"description":"Time of execution in unix epoch milliseconds when the scheduled changes will be applied","type":"integer"},"gitDetails":{"$ref":"#/components/schemas/GitDetails"},"instructions":{"$ref":"#/components/schemas/PatchInstruction"}},"required":["instructions"],"type":"object"},"GroupServingRule":{"description":"The rule used to determine what variation to serve to a target","properties":{"clauses":{"description":"A list of clauses to use in the rule","items":{"$ref":"#/components/schemas/Clause"},"type":"array"},"priority":{"description":"The rules priority relative to other rules.  The rules are evaluated in order with 1 being the highest","example":1,"type":"integer"},"ruleId":{"description":"The unique identifier for this rule","type":"string"}},"required":["ruleId","clauses","priority"],"type":"object"},"JiraIssue":{"description":"A Jira Issue","properties":{"issueKey":{"description":"The Jira Issue key","example":"FFM-7777","type":"string"},"issueURL":{"description":"The jira issue URL","example":"https://harness-dev1.atlassian.net","type":"string"}},"required":["issueKey","issueURL"],"type":"object"},"OrganizationDictionary":{"additionalProperties":{"$ref":"#/components/schemas/ProjectDictionary"},"type":"object"},"Pagination":{"properties":{"itemCount":{"description":"The total number of items","example":1,"type":"integer"},"pageCount":{"description":"The total number of pages","example":100,"type":"integer"},"pageIndex":{"description":"The current page","example":0,"type":"integer"},"pageSize":{"description":"The number of items per page","example":1,"type":"integer"},"version":{"description":"The version of this object.  The version will be incremented each time the object is modified","example":5,"type":"integer"}},"required":["pageCount","itemCount","pageSize","pageIndex"],"type":"object"},"PatchInstruction":{"description":"A list of Patch Instructions","items":{"properties":{"kind":{"description":"The name of the modification you would like to perform on a resource.","example":"enableFeatureFlag","type":"string"},"parameters":{"example":{"ruleId":"TestRule","variationID":"TestVariation"},"type":"object"}},"required":["kind","parameters"]},"type":"array"},"Prerequisite":{"description":"Feature Flag pre-requisites","properties":{"feature":{"description":"The feature identifier that is the prerequisite","type":"string"},"variations":{"description":"A list of variations that must be met","items":{"type":"string"},"type":"array"}},"required":["feature","variations"],"type":"object"},"ProjectDictionary":{"properties":{"projects":{"additionalProperties":{"$ref":"#/components/schemas/ProxyKeyProject"},"type":"object"}},"type":"object"},"ProxyKey":{"properties":{"createdAt":{"description":"The date the key was created at in milliseconds","format":"int64","type":"integer"},"description":{"description":"A description of the Proxy Key","example":"This is a proxy key for production","type":"string"},"id":{"description":"The ProxyKeys ID","example":"31B0B299-7635-416D-9E99-CFCAA7ADABEA","type":"string"},"identifier":{"description":"The Proxy Keys identifier","example":"ProxyKeyOne","type":"string"},"name":{"description":"The ProxyKeys name","example":"Proxy Key One","type":"string"},"updatedAt":{"description":"The date the key was last updated at in milliseconds","format":"int64","type":"integer"}},"required":["id","name","identifier","description","createdAt","updatedAt"],"type":"object"},"ProxyKeyInstruction":{"description":"A Proxy Key instruction","properties":{"instructions":{"properties":{"rotateKey":{"example":"12h","type":"string"},"updateConfig":{"example":{"organizations":{"org123":{"projects":{"project1":{"environments":[],"scope":"all"},"project2":{"environments":[],"scope":"prod"},"project3":{"environments":[],"scope":"non-prod"},"project4":{"environments":["env1","env2","env3"],"scope":"selected"}}}},"version":1},"properties":{"organizations":{"$ref":"#/components/schemas/OrganizationDictionary"},"version":{"example":1,"type":"integer"}},"required":["organizations","version"],"type":"object"},"updateDescription":{"example":"new proxyKey updateDescription","type":"string"},"updateName":{"example":"newProxyKey","type":"string"}},"type":"object"}},"type":"object"},"ProxyKeyProject":{"properties":{"environments":{"items":{"type":"string"},"type":"array"},"scope":{"enum":["all","prod","non-prod","selected"],"type":"string"}},"required":["scope"],"type":"object"},"ProxyKeys":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"proxyKeys":{"items":{"$ref":"#/components/schemas/ProxyKey"},"type":"array"}}}],"description":"A list of Proxy Keys","type":"object"},"Results":{"description":"This result object shows details of how many times a variation has been evaluated","properties":{"count":{"description":"The number of times this variation has been returned in a evaluation","type":"integer"},"variationIdentifier":{"description":"The unique variation identifier","example":"defaultOnVariation","type":"string"},"variationName":{"description":"The user friendly variation name","example":"Default On Variation","type":"string"}},"required":["variationIdentifier","variationName","count"],"type":"object"},"Segment":{"description":"A Target Group (Segment) response","properties":{"createdAt":{"description":"The data and time in milliseconds when the group was created","format":"int64","type":"integer"},"environment":{"description":"The environment this target group belongs to","example":"Production","type":"string"},"excluded":{"description":"A list of Targets who are excluded from this target group","items":{"$ref":"#/components/schemas/Target"},"type":"array"},"identifier":{"description":"Unique identifier for the target group.","type":"string"},"included":{"description":"A list of Targets who belong to this target group","items":{"$ref":"#/components/schemas/Target"},"type":"array"},"modifiedAt":{"description":"The data and time in milliseconds when the group was last modified","format":"int64","type":"integer"},"name":{"description":"Name of the target group.","example":"Beta Testers","type":"string"},"rules":{"items":{"$ref":"#/components/schemas/Clause"},"type":"array"},"servingRules":{"description":"An array of rules that can cause a user to be included in this segment.","items":{"$ref":"#/components/schemas/GroupServingRule"},"type":"array"},"tags":{"description":"Tags for this target group","items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"version":{"description":"The version of this group.  Each time it is modified the version is incremented","example":1,"format":"int64","type":"integer"}},"required":["identifier","name"],"type":"object"},"SegmentFlag":{"description":"Details of a Feature Flag that has been included in a Target Group (Segment)","properties":{"description":{"description":"A description of the feature flag","type":"string"},"environment":{"description":"The environment identifier for the feature flag","type":"string"},"identifier":{"description":"The identifier of the feature flag","example":"simple-bool","type":"string"},"name":{"description":"The name of the feature flag","example":"Simple Bool","type":"string"},"project":{"description":"The project identifier for the feature flag","type":"string"},"ruleId":{"description":"The unique identifier for this rule","type":"string"},"type":{"description":"How the the flag has been included, either directly or via a custom rule","enum":["DIRECT","CONDITION"],"type":"string"},"variation":{"description":"The identifier for the variation of the flag that should be served to members of the group","type":"string"}},"required":["identifier","type","project","environment","name","variation"],"type":"object"},"Segments":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"segments":{"items":{"$ref":"#/components/schemas/Segment"},"type":"array"}}}],"description":"A list of Target Groups (Segments)","type":"object"},"Serve":{"description":"Describe the distribution rule and the variation that should be served to the target","properties":{"distribution":{"$ref":"#/components/schemas/Distribution"},"variation":{"type":"string"}},"type":"object"},"Service":{"description":"A Harness service linked to a flag","properties":{"identifier":{"description":"The identifier of the service","type":"string"},"name":{"description":"The name of the service","type":"string"}},"required":["name","identifier"],"type":"object"},"ServingRule":{"description":"The rule used to determine what variation to serve to a target","properties":{"clauses":{"description":"A list of clauses to use in the rule","items":{"$ref":"#/components/schemas/Clause"},"type":"array"},"priority":{"description":"The rules priority relative to other rules.  The rules are evaluated in order with 1 being the highest","example":1,"type":"integer"},"ruleId":{"description":"The unique identifier for this rule","type":"string"},"serve":{"$ref":"#/components/schemas/Serve"}},"required":["priority","clauses","serve"],"type":"object"},"Tag":{"description":"A Tag object used to tag feature flags - consists of name and identifier","properties":{"identifier":{"description":"The identifier of the tag","example":"feature-flag-tag-1","type":"string"},"name":{"description":"The name of the tag","example":"feature-flag-tag-1","type":"string"}},"required":["name","identifier"],"type":"object"},"TagResponseMetadata":{"properties":{"details":{"description":"Additional metadata about the request","properties":{"governanceMetadata":{"description":"Summary of governance checks including any warnings","type":"object"}},"type":"object"}},"type":"object"},"Tags":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"}}}],"description":"A list of Tags - requirement for feature flag tagging","type":"object"},"Target":{"description":"A Target object","properties":{"account":{"description":"The account ID that the target belongs to","example":"abcXDdffdaffd","type":"string"},"anonymous":{"description":"Indicates if this target is anonymous","type":"boolean"},"attributes":{"description":"a JSON representation of the attributes for this target","example":{"age":20,"location":"Belfast"},"type":"object"},"createdAt":{"description":"The date and time in milliseconds when this Target was created","format":"int64","type":"integer"},"environment":{"description":"The identifier for the environment that the target belongs to","type":"string"},"identifier":{"description":"The unique identifier for this target","example":"john-doe","type":"string"},"name":{"description":"The name of this Target","example":"John Doe","type":"string"},"org":{"description":"The identifier for the organization that the target belongs to","type":"string"},"project":{"description":"The identifier for the project that this target belongs to","type":"string"},"segments":{"description":"A list of Target Groups (Segments) that this Target belongs to","items":{"$ref":"#/components/schemas/Segment"},"type":"array"}},"required":["identifier","name","environment","project","account","org"],"type":"object"},"TargetDetail":{"description":"Details of which Target Groups (Segments) a target is included in or excluded from","properties":{"excludedSegments":{"description":"A list of target groups (segments) that the target is excluded from.","items":{"$ref":"#/components/schemas/TargetDetailSegment"},"type":"array"},"identifier":{"description":"The unique identifier for the target","type":"string"},"includedSegments":{"description":"A list of target groups (segments) that the target is included in.","items":{"$ref":"#/components/schemas/TargetDetailSegment"},"type":"array"},"ruleSegments":{"description":"A list of target groups (segments) that the target is included in via group rules.","items":{"$ref":"#/components/schemas/TargetDetailSegment"},"type":"array"}},"required":["identifier","environment","project","account","org"],"type":"object"},"TargetDetailSegment":{"properties":{"identifier":{"description":"The unique identifier","type":"string"},"name":{"description":"The name","type":"string"}},"type":"object"},"TargetMap":{"description":"Target map provides the details of a target that belongs to a flag","properties":{"identifier":{"description":"The identifier for the target","type":"string"},"name":{"description":"The name of the target","type":"string"}},"required":["identifier","name"],"type":"object"},"TargetRulesUpdate":{"description":"An object used to specify updates for flag activation updates","properties":{"targets":{"description":"The target rules that should be set for this variation","example":["target1","target2"],"items":{"type":"string"},"type":"array"},"variation":{"description":"The name of the variation these rules apply to","example":true,"type":"string"}},"required":["variation"],"type":"object"},"Targets":{"allOf":[{"$ref":"#/components/schemas/Pagination"},{"properties":{"targets":{"items":{"$ref":"#/components/schemas/Target"},"type":"array"}}}],"description":"A list of Targets","type":"object"},"Variation":{"description":"A variation of a flag that can be returned to a target","properties":{"description":{"description":"A description of the variation","type":"string"},"identifier":{"description":"The unique identifier for the variation","example":"off-variation","type":"string"},"name":{"description":"The user friendly name of the variation","example":"Off VAriation","type":"string"},"value":{"description":"The variation value to serve such as true or false for a boolean flag","example":"true","type":"string"}},"required":["identifier","value"],"type":"object"},"VariationMap":{"description":"A mapping of variations to targets and target groups (segments).  The targets listed here should receive this variation.","properties":{"targetSegments":{"description":"A list of target groups (segments)","items":{"type":"string"},"type":"array"},"targets":{"description":"A list of target mappings","items":{"$ref":"#/components/schemas/TargetMap"},"type":"array"},"variation":{"description":"The variation identifier","example":"off-variation","type":"string"}},"required":["variation"],"type":"object"},"WeightedVariation":{"description":"A variation and the weighting it should receive as part of a percentage rollout","properties":{"variation":{"description":"The variation identifier","example":"off-variation","type":"string"},"weight":{"description":"The weight to be given to the variation in percent","example":50,"type":"integer"}},"required":["variation","weight"],"type":"object"}},"securitySchemes":{"ApiKey":{"in":"header","name":"x-api-key","type":"apiKey"},"ApiKeyAuth":{"in":"header","name":"api-key","type":"apiKey"},"BearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"contact":{"email":"ff@harness.io","name":"Feature Flag - developers","url":"https://www.harness.io"},"title":"Harness Feature Flag Service","version":"1.0.0"},"openapi":"3.0.0","paths":{"/admin/activity/features":{},"/admin/aida":{},"/admin/anomalies/{identifier}/dismiss":{"put":{"description":"Dismisses A CCM Anomaly, which essentially sets it as acknowledged in the database","operationId":"DismissAnomaly","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"200":{"description":"Anomaly Dismissed."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Dismisses an Anomaly","tags":["Anomalies"]}},"/admin/apikey":{"get":{"description":"Returns all the API Keys for an Environment","operationId":"GetAllAPIKeys","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"}],"responses":{"200":{"$ref":"#/components/responses/APIKeysResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns API Keys for an Environment","tags":["API Keys"]},"post":{"description":"Creates an API key for the given Environment","operationId":"AddAPIKey","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/APIKeyRequest"},"responses":{"201":{"$ref":"#/components/responses/APIKeyResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates an API key for the given Environment","tags":["API Keys"]}},"/admin/apikey/{identifier}":{"delete":{"description":"Deletes an API key for the given identifier","operationId":"DeleteAPIKey","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"}],"responses":{"204":{"description":"No content"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Deletes an API Key","tags":["API Keys"]},"get":{"description":"Returns all the API Keys for the given identifier","operationId":"GetAPIKey","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/APIKeyResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns API keys","tags":["API Keys"]},"put":{"description":"Updates an API key for the given identifier","operationId":"UpdateAPIKey","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/APIKeyUpdateRequest"},"responses":{"200":{"description":"Updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Updates an API Key","tags":["API Keys"]}},"/admin/attributes":{"get":{"description":"Returns all the custom attributes the given environment","operationId":"GetAttributes","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/customAttributeQueryParam"},{"$ref":"#/components/parameters/attributeCounts"}],"responses":{"200":{"$ref":"#/components/responses/AttributesResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns all custom attributes for the project","tags":["Attributes"]},"post":{"description":"Creates a custom attribute for given environment","operationId":"CreateAttribute","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/AttributeRequest"},"responses":{"201":{"$ref":"#/components/responses/AttributeEditResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates a custom Attribute","tags":["Attributes"]}},"/admin/attributes/{key}":{"delete":{"description":"Delete an Attribute for the given key and environmentID","operationId":"DeleteAttribute","parameters":[{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"204":{"description":"No content"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Delete an Attribute","tags":["Attributes"]},"get":{"description":"Returns Attribute","operationId":"GetAttribute","parameters":[{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/AttributeResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns an Attribute","tags":["Attributes"]},"patch":{"description":"Updates Attribute key details for the given environment","operationId":"PatchAttribute","parameters":[{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/AttributePatchRequest"},"responses":{"200":{"$ref":"#/components/responses/AttributeEditResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Update Attribute for the environment","tags":["Attributes"]}},"/admin/audit":{},"/admin/environments":{},"/admin/environments/perspectives":{"delete":{"description":"Deletes a perspective from an environment. An Environment can only have one Perspective","operationId":"DeletePerspective","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"204":{"description":"No content"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Delete a Perspective - Environment link.","tags":["Environment Perspectives"]},"put":{"description":"Adds a perspective to an environment, or updates an existing. An Environment can only have one Perspective","operationId":"UpsertPerspective","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/EnvironmentPerspectiveUpsertRequest"},"responses":{"200":{"$ref":"#/components/responses/EnvironmentPerspectiveResponse"},"201":{"$ref":"#/components/responses/EnvironmentPerspectiveResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Upsert a Perspective to an Environment.","tags":["Environment Perspectives"]}},"/admin/features":{"get":{"description":"Returns all the Feature Flag details for the given project","operationId":"GetAllFeatures","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentOptionalQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/sortByField"},{"$ref":"#/components/parameters/nameQueryParam"},{"$ref":"#/components/parameters/identifierQueryParam"},{"$ref":"#/components/parameters/archivedQueryParam"},{"$ref":"#/components/parameters/kindQueryParam"},{"$ref":"#/components/parameters/targetOptionalParam"},{"$ref":"#/components/parameters/targetFilterOptionalParam"},{"$ref":"#/components/parameters/featuresOptionalParam"},{"$ref":"#/components/parameters/excludedFeaturesOptionalParam"},{"$ref":"#/components/parameters/flagStatus"},{"$ref":"#/components/parameters/flagLifetime"},{"$ref":"#/components/parameters/flagEnabled"},{"$ref":"#/components/parameters/flagCounts"},{"$ref":"#/components/parameters/flagSummary"},{"$ref":"#/components/parameters/flagTags"}],"responses":{"200":{"$ref":"#/components/responses/FeaturesResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns all Feature Flags for the project","tags":["Feature Flags"]},"post":{"description":"Creates a Feature Flag in the Project","operationId":"CreateFeatureFlag","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/FeatureFlagRequest"},"responses":{"201":{"$ref":"#/components/responses/FeatureEditResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates a Feature Flag","tags":["Feature Flags"]}},"/admin/features/available_pipelines":{},"/admin/features/metrics":{},"/admin/features/yaml":{},"/admin/features/{identifier}":{"delete":{"description":"Delete Feature Flag for the given identifier and account ID","operationId":"DeleteFeatureFlag","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/commitMsgQueryParam"},{"$ref":"#/components/parameters/forceDeleteQueryParam"}],"responses":{"204":{"description":"No content"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Delete a Feature Flag","tags":["Feature Flags"]},"get":{"description":"Returns details such as Variation name, identifier etc for the given Feature Flag","operationId":"GetFeatureFlag","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentOptionalQueryParam"},{"$ref":"#/components/parameters/archivedQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/FeatureResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns a Feature Flag","tags":["Feature Flags"]},"patch":{"description":"This operation is used to modify a Feature Flag.  The request body can include one or more instructions that can modify\nflag attributes such as the state (off|on), the variations that are returned and serving rules.\nFor example if you want to turn a flag off you can use this opeartion and send the setFeatureFlagState\n\n{\n  \"kind\": \"setFeatureFlagState\",\n  \"parameters\": {\n    \"state\": \"off\"\n  }\n}\n","operationId":"PatchFeature","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentOptionalQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/FeaturePatchRequest"},"responses":{"200":{"$ref":"#/components/responses/FeatureEditResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Updates a Feature Flag","tags":["Feature Flags"]},"put":{"description":"Updates a Feature Flag in the Project","operationId":"PutFeatureFlag","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/FeatureFlagPutRequest"},"responses":{"200":{"$ref":"#/components/responses/FeatureEditResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Updates a Feature Flag","tags":["Feature Flags"]}},"/admin/features/{identifier}/dependants":{"get":{"description":"Given identifier return list all the flags which depend on it.","operationId":"GetDependentFeatures","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentOptionalQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/sortByField"},{"$ref":"#/components/parameters/nameQueryParam"},{"$ref":"#/components/parameters/archivedQueryParam"},{"$ref":"#/components/parameters/kindQueryParam"},{"$ref":"#/components/parameters/targetOptionalParam"},{"$ref":"#/components/parameters/targetFilterOptionalParam"},{"$ref":"#/components/parameters/metricsOptionalParam"},{"$ref":"#/components/parameters/featuresOptionalParam"},{"$ref":"#/components/parameters/excludedFeaturesOptionalParam"},{"$ref":"#/components/parameters/flagStatus"},{"$ref":"#/components/parameters/flagLifetime"},{"$ref":"#/components/parameters/flagEnabled"},{"$ref":"#/components/parameters/flagCounts"},{"$ref":"#/components/parameters/flagSummary"},{"$ref":"#/components/parameters/flagTags"}],"responses":{"200":{"$ref":"#/components/responses/FeaturesResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Return a list of dependant flags","tags":["Feature Flags"]}},"/admin/features/{identifier}/pipeline":{},"/admin/features/{identifier}/restore":{"post":{"description":"Restore Feature Flag for the given identifier and account ID","operationId":"RestoreFeatureFlag","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/commitMsgQueryParam"}],"responses":{"204":{"description":"No content"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Restore a Feature Flag","tags":["Feature Flags"]}},"/admin/features/{identifier}/stale_state":{},"/admin/jira/issues":{},"/admin/onboarding":{},"/admin/overview":{},"/admin/projects":{},"/admin/projects/{identifier}/flags":{},"/admin/projects/{identifier}/git_repo/sync":{},"/admin/projects/{identifier}/sample_stale_flag_state":{},"/admin/projects/{identifier}/stale_config":{},"/admin/projects/{identifier}/validate_stale_config":{},"/admin/proxy/keys":{"get":{"description":"Returns all the Proxy keys in an account","operationId":"GetProxyKeys","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/nameQueryParam"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/proxyKeySortByField"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"}],"responses":{"200":{"$ref":"#/components/responses/ProxyKeysResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns all Proxy keys in an account","tags":["Proxy"]},"post":{"description":"Creates a Proxy Key in the account \u0026 org","operationId":"CreateProxyKey","parameters":[{"$ref":"#/components/parameters/accountQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/ProxyKeysPostRequest"},"responses":{"201":{"$ref":"#/components/responses/ProxyKeysCreateResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates a Proxy Key in the account \u0026 org","tags":["Proxy"]}},"/admin/proxy/keys/{identifier}":{"delete":{"description":"Deletes a ProxyKey","operationId":"DeleteProxyKey","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/identifier"}],"responses":{"204":{"description":"No content"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Deletes a ProxyKey","tags":["Proxy"]},"get":{"description":"Returns a ProxyKey","operationId":"GetProxyKey","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/identifier"}],"responses":{"200":{"$ref":"#/components/responses/ProxyKeyResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns a ProxyKey","tags":["Proxy"]},"patch":{"description":"This operation is used to modify which environments a ProxyKey has access to. The request body can include one or more instructions that can assign or unassign environmnets to the ProxyKey\n","operationId":"PatchProxyKey","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/ProxyKeysPatchRequest"},"responses":{"200":{"$ref":"#/components/responses/ProxyKeysCreateResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Updates a Proxy Key in the account \u0026 org","tags":["Proxy"]}},"/admin/segments":{"get":{"description":"Returns Target Group details for the given account","operationId":"GetAllSegments","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/sortByField"},{"$ref":"#/components/parameters/nameQueryParam"},{"$ref":"#/components/parameters/identifierQueryParam"},{"$ref":"#/components/parameters/segmentRulesV2QueryParam"}],"responses":{"200":{"$ref":"#/components/responses/SegmentsResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns all Target Groups","tags":["Target Groups"]},"post":{"description":"Creates a Target Group in the given Project","operationId":"CreateSegment","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/SegmentRequest"},"responses":{"201":{"description":"Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates a Target Group","tags":["Target Groups"]}},"/admin/segments/{identifier}":{"delete":{"description":"Deletes a Target Group for the given ID","operationId":"DeleteSegment","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"204":{"description":"No content"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Deletes a Target Group","tags":["Target Groups"]},"get":{"description":"Returns Target Group details for the given ID","operationId":"GetSegment","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/segmentRulesV2QueryParam"}],"responses":{"200":{"$ref":"#/components/responses/SegmentResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns Target Group details for the given identifier","tags":["Target Groups"]},"patch":{"description":"Updates a Target Group for the given identifier","operationId":"PatchSegment","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/identifier"}],"requestBody":{"$ref":"#/components/requestBodies/SegmentPatchRequest"},"responses":{"200":{"$ref":"#/components/responses/SegmentResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Updates a Target Group","tags":["Target Groups"]}},"/admin/segments/{identifier}/available_flags":{"get":{"description":"Returns the list of Feature Flags that the Target Group can be added to.  This list will exclude any Feature Flag that the Target Group is already part of.","operationId":"GetAvailableFlagsForSegment","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/safSortOrder"},{"$ref":"#/components/parameters/safSortByField"},{"$ref":"#/components/parameters/flagNameQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/AvailableFlagResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns Feature Flags that are available to be added to the given Target Group","tags":["Target Groups"]}},"/admin/segments/{identifier}/flags":{"get":{"description":"Returns the details of a Feature Flag in a Target Group for the given identifier","operationId":"GetSegmentFlags","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/SegmentFlagsResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns Feature Flags in a Target Group","tags":["Target Groups"]}},"/admin/tags":{"get":{"description":"Returns all the Tags for the given Account ID","operationId":"GetAllTags","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/sortByField"},{"$ref":"#/components/parameters/tagFilterOptionalParam"}],"responses":{"200":{"$ref":"#/components/responses/TagsResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns all Tags","tags":["Tags"]},"post":{"description":"Create Tags for the given identifier","operationId":"CreateTag","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/TagRequest"},"responses":{"201":{"$ref":"#/components/responses/TagEditResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates a Tag","tags":["Tags"]}},"/admin/tags/{identifier}":{"delete":{"description":"Delete Tag for the given identifier and account ID","operationId":"DeleteTag","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/commitMsgQueryParam"},{"$ref":"#/components/parameters/forceDeleteQueryParam"}],"responses":{"204":{"description":"No content"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"424":{"$ref":"#/components/responses/GitSyncError"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Delete a Tag","tags":["Tags"]},"get":{"description":"Returns details such as identifier,Associated Feature Flag etc for the given Tag","operationId":"GetTag","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentOptionalQueryParam"},{"$ref":"#/components/parameters/metricsOptionalParam"},{"$ref":"#/components/parameters/archivedQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/FeatureResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns a Tag","tags":["Tags"]}},"/admin/targets":{"get":{"description":"Returns all the Targets for the given Account ID","operationId":"GetAllTargets","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/targetSortOrder"},{"$ref":"#/components/parameters/targetSortByField"},{"$ref":"#/components/parameters/targetNameQueryParam"},{"$ref":"#/components/parameters/targetIdentifierQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/TargetsResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns all Targets","tags":["Targets"]},"post":{"description":"Create Targets for the given identifier","operationId":"CreateTarget","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/TargetRequest"},"responses":{"201":{"description":"Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Creates a Target","tags":["Targets"]}},"/admin/targets-segments-info/":{},"/admin/targets-segments/":{},"/admin/targets/attributes":{},"/admin/targets/upload":{"post":{"description":"Add targets by uploading a CSV file","operationId":"UploadTargets","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"fileName":{"format":"binary","type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Add Target details","tags":["Targets"]}},"/admin/targets/{identifier}":{"delete":{"description":"Deletes a Target for the given identifier","operationId":"DeleteTarget","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"204":{"description":"No content"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Deletes a Target","tags":["Targets"]},"get":{"description":"Returns details of a Target for the given identifier","operationId":"GetTarget","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/TargetResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns details of a Target","tags":["Targets"]},"patch":{"description":"Updates a Target for the given identifier","operationId":"PatchTarget","parameters":[{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"},{"$ref":"#/components/parameters/identifier"}],"requestBody":{"$ref":"#/components/requestBodies/TargetPatchRequest"},"responses":{"200":{"$ref":"#/components/responses/TargetResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Updates a Target","tags":["Targets"]},"put":{"description":"Modifies a Target for the given account identifier","operationId":"ModifyTarget","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/TargetRequest"},"responses":{"200":{"$ref":"#/components/responses/TargetResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Modifies a Target","tags":["Targets"]}},"/admin/targets/{identifier}/segments":{"get":{"description":"Returns the Target Groups that the specified Target belongs to.","operationId":"GetTargetSegments","parameters":[{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/accountQueryParam"},{"$ref":"#/components/parameters/orgQueryParam"},{"$ref":"#/components/parameters/projectQueryParam"},{"$ref":"#/components/parameters/environmentQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/TargetDetailResponse"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Returns Target Groups for the given Target","tags":["Targets"]}},"/admin/triggers/ccm":{},"/usage":{}},"security":[{"ApiKey":[]}],"servers":[{"url":"https://app.harness.io/gateway/cf"}],"tags":[{"description":"APIs to create and manage Feature Flag SDK API Keys","name":"API Keys"},{"description":"APIs to create and manage Feature Flags","name":"Feature Flags"},{"description":"APIs to create and manage Feature Flag Targets","name":"Targets"},{"description":"APIs to create and manage Feature Flag Target Groups","name":"Target Groups"},{"description":"APIs to create and manage Feature Flag Tags","name":"Tags"},{"description":"APIs used by the ff-proxy","name":"Proxy"},{"description":"APIs to create and manage Feature Flag Environment perspectives","name":"Environment Perspectives"},{"description":"APIs to manage Anomalies on the Feature Flag Service","name":"Anomalies"},{"description":"APIs to trigger jobs on the Feature Flag Service","name":"Triggers"},{"description":"APIS to create and manage Target Group Attributes","name":"Attributes"}]}
