Generates an evaluation preview of every feature flag in a project for a single tenant in a single environment
GET /api
Also reachable at /api.
Path Parameters
environmentIdstring (required)projectIdstring (required)spaceIdstring (required)tenantIdstring (required)
Query Parameters
partialNamestring
Filters results to feature flags whose name or slug contains this text.skipinteger (required)
Number of items to skip. Defaults to zero. Minimum0.tagsarray of stringtakeinteger (required)
Number of items to take. Defaults to 30. Minimum0.
Response
200 — The evaluated state of a project’s feature flags for a single tenant in a single environment.
FlagsobjectItemTypestring
The type of item in this list.Itemsarray of objectItemsPerPageintegerLastPageNumberintegerNumberOfPagesintegerTotalResultsinteger
Versionstring
The release version the flags were evaluated against, taken from the release currently deployed to the environment for the tenant. Null when the tenant has nothing deployed there, in which case version conditions are treated as satisfied.
Example Response
{
"Flags": {
"ItemType": "FeatureFlagEvaluationPreview",
"Items": [
{
"Id": "string",
"Name": "string",
"Reason": "string",
"Slug": "string",
"Value": false
}
],
"ItemsPerPage": 30,
"LastPageNumber": 1,
"NumberOfPages": 2,
"TotalResults": 42
},
"Version": "string"
}Lists all feature flags within a project
GET /api
Also reachable at /api.
Path Parameters
projectIdstring (required)spaceIdstring (required)
Query Parameters
environmentsarray of stringhasTargetingbooleanpartialNamestring
Filters results to feature flags whose name or slug contains this text.rolloutGroupsarray of stringskipinteger (required)
Number of items to skip. Defaults to zero. Minimum0.tagsarray of stringtakeinteger (required)
Number of items to take. Defaults to 30. Minimum0.
Response
200 — Success
ItemTypestring
The type of item in this list.Itemsarray of objectCreatedstring
Formatdate-time.DefaultIsEnabledbooleanDescriptionstringEnvironmentsarray of objectIdstringNamestring
Minimum length 1.ProjectIdstringRolloutGroupIdstringSlugstring
Minimum length 1.SpaceIdstringTagsarray of string
ItemsPerPageintegerLastPageNumberintegerNumberOfPagesintegerTotalResultsinteger
Example Response
{
"ItemType": "FeatureFlagSummary",
"Items": [
{
"Created": "2020-01-01T00:00:00.000Z",
"DefaultIsEnabled": false,
"Description": "string",
"Environments": [
{}
],
"Id": "string",
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}
],
"ItemsPerPage": 30,
"LastPageNumber": 1,
"NumberOfPages": 2,
"TotalResults": 42
}Creates a feature flag
POST /api
Also reachable at /api.
Path Parameters
projectIdstring (required)spaceIdstring (required)
Request Body
Descriptionstring
Maximum length 1000.Environmentsarray of object (required)DeploymentEnvironmentIdstring (required)IsEnabledboolean (required)Phasesarray of object (required)
Namestring (required)
Minimum length 1. Maximum length 200.ProjectIdstring (required)RolloutGroupIdstringSlugstring
The slug for the feature flag. When not supplied, a slug is generated from the name. Maximum length 200.SpaceIdstring (required)Tagsarray of string
Response
201 — Created
Createdstring
Formatdate-time.DefaultIsEnabledbooleanDescriptionstringEnvironmentsarray of objectDeploymentEnvironmentIdstringIsEnabledbooleanPhasesarray of object
IdstringNamestring
Minimum length 1.ProjectIdstringRolloutGroupIdstringSlugstring
Minimum length 1.SpaceIdstringTagsarray of string
Example Request
{
"Description": "string",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}Example Response
{
"Created": "2020-01-01T00:00:00.000Z",
"DefaultIsEnabled": false,
"Description": "string",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"Id": "string",
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}Clones a feature flag into the same project. The clone starts switched off in every environment with no phases enabled
POST /api
Also reachable at /api.
Path Parameters
featureFlagIdstring (required)projectIdstring (required)spaceIdstring (required)
Request Body
FeatureFlagIdstring (required)Namestring (required)
Minimum length 1. Maximum length 200.ProjectIdstring (required)Slugstring
Maximum length 200.SpaceIdstring (required)
Response
201 — Created
Createdstring
Formatdate-time.DefaultIsEnabledbooleanDescriptionstringEnvironmentsarray of objectDeploymentEnvironmentIdstringIsEnabledbooleanPhasesarray of object
IdstringNamestring
Minimum length 1.ProjectIdstringRolloutGroupIdstringSlugstring
Minimum length 1.SpaceIdstringTagsarray of string
Example Request
{
"FeatureFlagId": "string",
"Name": "string",
"ProjectId": "Projects-1",
"Slug": "string",
"SpaceId": "Spaces-1"
}Example Response
{
"Created": "2020-01-01T00:00:00.000Z",
"DefaultIsEnabled": false,
"Description": "string",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"Id": "string",
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}Generates an evaluation preview for a feature flag across all environments in all project lifecycles, sorted in lifecycle order. Optionally scoped to a specific tenant; when no tenant is provided, the untenanted case is evaluated
GET /api
Also reachable at /api.
Path Parameters
featureFlagIdstring (required)projectIdstring (required)spaceIdstring (required)
Query Parameters
channelIdstring
Scopes the release version lookup to a single channel. When null, the most recently deployed release across all channels is used for each environment.partialNamestring
Filters results to environments whose name contains this text.skipinteger (required)
Number of items to skip. Defaults to zero. Minimum0.takeinteger (required)
Number of items to take. Defaults to 30. Minimum0.tenantIdstring
Scopes the evaluation to a single tenant. When null, the untenanted case is evaluated.
Response
200 — Success
ItemTypestring
The type of item in this list.Itemsarray of objectEnvironmentIdstringReasonstring
A human-readable explanation of why the flag evaluated to the value it did. Minimum length 1.Valueboolean
The value the flag evaluated to (true or false).Versionstring
The release version used to evaluate version conditions. Null when nothing has been deployed to the environment for the project (and tenant, when the preview is scoped to one).
ItemsPerPageintegerLastPageNumberintegerNumberOfPagesintegerTotalResultsinteger
Example Response
{
"ItemType": "EnvironmentFeatureFlagEvaluationPreview",
"Items": [
{
"EnvironmentId": "Environments-1",
"Reason": "string",
"Value": false,
"Version": "string"
}
],
"ItemsPerPage": 30,
"LastPageNumber": 1,
"NumberOfPages": 2,
"TotalResults": 42
}Generates an evaluation preview for an unsaved configuration of a feature flag across all environments in all project lifecycles, sorted in lifecycle order, alongside the evaluation for the flag’s saved configuration. Optionally scoped to a specific tenant; when no tenant is provided, the untenanted case is evaluated. Nothing is saved
POST /api
Also reachable at /api.
Path Parameters
featureFlagIdstring (required)projectIdstring (required)spaceIdstring (required)
Request Body
ChannelIdstring
Scopes the release version lookup to a single channel. When null, the most recently deployed release across all channels is used for each environment.DefaultIsEnabledboolean
The unsaved default value of the flag.Environmentsarray of object (required)
The unsaved rollout configuration of the flag, in the same shape the flag is modified with.DeploymentEnvironmentIdstring (required)IsEnabledboolean (required)Phasesarray of object (required)
FeatureFlagIdstring (required)PartialNamestring
Filters results to environments whose name contains this text.ProjectIdstring (required)RolloutGroupIdstring
The unsaved rollout group of the flag.Skipinteger (required)
Number of items to skip. Defaults to zero. Minimum0.SpaceIdstring (required)Takeinteger (required)
Number of items to take. Defaults to 30. Minimum0.TenantIdstring
Scopes the evaluation to a single tenant. When null, the untenanted case is evaluated.
Response
200 — Success
ItemTypestring
The type of item in this list.Itemsarray of objectEnvironmentIdstringSavedobjectUnsavedobjectVersionstring
The release version used to evaluate version conditions. Null when nothing has been deployed to the environment for the project (and tenant, when the preview is scoped to one).
ItemsPerPageintegerLastPageNumberintegerNumberOfPagesintegerTotalResultsinteger
Example Request
{
"ChannelId": "Channels-1",
"DefaultIsEnabled": false,
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"FeatureFlagId": "string",
"PartialName": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Skip": 0,
"SpaceId": "Spaces-1",
"Take": 0,
"TenantId": "Tenants-1"
}Example Response
{
"ItemType": "EnvironmentFeatureFlagEvaluationComparison",
"Items": [
{
"EnvironmentId": "Environments-1",
"Saved": {
"Reason": "string",
"Value": false
},
"Unsaved": {
"Reason": "string",
"Value": false
},
"Version": "string"
}
],
"ItemsPerPage": 30,
"LastPageNumber": 1,
"NumberOfPages": 2,
"TotalResults": 42
}Generates an evaluation preview for a feature flag across all tenants connected to the given project and environment. The untenanted case is included as the first entry of the first page
GET /api
Also reachable at /api.
Path Parameters
featureFlagIdstring (required)projectIdstring (required)spaceIdstring (required)
Query Parameters
channelIdstring
Scopes the release version lookup to a single channel. When null, the most recently deployed release across all channels is used for each tenant.environmentIdstring (required)partialNamestring
Filters results to tenants whose name contains this text.skipinteger (required)
Number of items to skip. Defaults to zero. Minimum0.takeinteger (required)
Number of items to take. Defaults to 30. Minimum0.
Response
200 — Success
ItemTypestring
The type of item in this list.Itemsarray of objectReasonstring
A human-readable explanation of why the flag evaluated to the value it did. Minimum length 1.TenantIdstringValueboolean
The value the flag evaluated to (true or false).Versionstring
The release version used to evaluate version conditions. Null when nothing has been deployed for the tenant in the project and environment.
ItemsPerPageintegerLastPageNumberintegerNumberOfPagesintegerTotalResultsinteger
Example Response
{
"ItemType": "TenantFeatureFlagEvaluationPreview",
"Items": [
{
"Reason": "string",
"TenantId": "Tenants-1",
"Value": false,
"Version": "string"
}
],
"ItemsPerPage": 30,
"LastPageNumber": 1,
"NumberOfPages": 2,
"TotalResults": 42
}Generates an evaluation preview for an unsaved configuration of a feature flag across all tenants connected to the given project and environment, alongside the evaluation for the flag’s saved configuration. The untenanted case is included as the first entry of the first page. Nothing is saved
POST /api
Also reachable at /api.
Path Parameters
featureFlagIdstring (required)projectIdstring (required)spaceIdstring (required)
Request Body
ChannelIdstring
Scopes the release version lookup to a single channel. When null, the most recently deployed release across all channels is used for each tenant.DefaultIsEnabledboolean
The unsaved default value of the flag.EnvironmentIdstring (required)Environmentsarray of object (required)
The unsaved rollout configuration of the flag, in the same shape the flag is modified with.DeploymentEnvironmentIdstring (required)IsEnabledboolean (required)Phasesarray of object (required)
FeatureFlagIdstring (required)PartialNamestring
Filters results to tenants whose name contains this text.ProjectIdstring (required)RolloutGroupIdstring
The unsaved rollout group of the flag.Skipinteger (required)
Number of items to skip. Defaults to zero. Minimum0.SpaceIdstring (required)Takeinteger (required)
Number of items to take. Defaults to 30. Minimum0.
Response
200 — Success
ItemTypestring
The type of item in this list.Itemsarray of objectSavedobjectTenantIdstringUnsavedobjectVersionstring
The release version used to evaluate version conditions. Null when nothing has been deployed for the tenant in the project and environment.
ItemsPerPageintegerLastPageNumberintegerNumberOfPagesintegerTotalResultsinteger
Example Request
{
"ChannelId": "Channels-1",
"DefaultIsEnabled": false,
"EnvironmentId": "Environments-1",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"FeatureFlagId": "string",
"PartialName": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Skip": 0,
"SpaceId": "Spaces-1",
"Take": 0
}Example Response
{
"ItemType": "TenantFeatureFlagEvaluationComparison",
"Items": [
{
"Saved": {
"Reason": "string",
"Value": false
},
"TenantId": "Tenants-1",
"Unsaved": {
"Reason": "string",
"Value": false
},
"Version": "string"
}
],
"ItemsPerPage": 30,
"LastPageNumber": 1,
"NumberOfPages": 2,
"TotalResults": 42
}Retrieves a feature flag by ID
GET /api
Also reachable at /api.
Path Parameters
idstring (required)projectIdstring (required)spaceIdstring (required)
Response
200 — A feature flag.
Createdstring
Formatdate-time.DefaultIsEnabledbooleanDescriptionstringEnvironmentsarray of objectDeploymentEnvironmentIdstringIsEnabledbooleanPhasesarray of object
IdstringNamestring
Minimum length 1.ProjectIdstringRolloutGroupIdstringSlugstring
Minimum length 1.SpaceIdstringTagsarray of string
Example Response
{
"Created": "2020-01-01T00:00:00.000Z",
"DefaultIsEnabled": false,
"Description": "string",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"Id": "string",
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}Modifies a feature flag
PUT /api
Also reachable at /api.
Path Parameters
idstring (required)projectIdstring (required)spaceIdstring (required)
Request Body
DefaultIsEnabledbooleanDescriptionstring
Maximum length 1000.Environmentsarray of object (required)
The complete set of per-environment configurations for the flag. This replaces the existing set: environments omitted here are removed from the flag.DeploymentEnvironmentIdstring (required)IsEnabledboolean (required)Phasesarray of object (required)
Idstring (required)Namestring (required)
Minimum length 1. Maximum length 200.ProjectIdstring (required)RolloutGroupIdstringSlugstring (required)
Minimum length 1. Maximum length 200.SpaceIdstring (required)Tagsarray of string
Response
200 — A feature flag.
Createdstring
Formatdate-time.DefaultIsEnabledbooleanDescriptionstringEnvironmentsarray of objectDeploymentEnvironmentIdstringIsEnabledbooleanPhasesarray of object
IdstringNamestring
Minimum length 1.ProjectIdstringRolloutGroupIdstringSlugstring
Minimum length 1.SpaceIdstringTagsarray of string
Example Request
{
"DefaultIsEnabled": false,
"Description": "string",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"Id": "string",
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}Example Response
{
"Created": "2020-01-01T00:00:00.000Z",
"DefaultIsEnabled": false,
"Description": "string",
"Environments": [
{
"DeploymentEnvironmentId": "Environments-1",
"IsEnabled": false,
"Phases": [
{}
]
}
],
"Id": "string",
"Name": "string",
"ProjectId": "Projects-1",
"RolloutGroupId": "string",
"Slug": "string",
"SpaceId": "Spaces-1",
"Tags": [
"string"
]
}Deletes a feature flag
DELETE /api
Also reachable at /api.
Path Parameters
idstring (required)projectIdstring (required)spaceIdstring (required)
Response
200 — Response from deleting a rule-based (V2) feature flag
Example Response
{}