{ "opencollection": "1.0.0", "info": { "name": "Split Admin Feature Flag Definitions API", "version": "2.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Feature Flag Definitions", "type": "folder" }, "items": [ { "info": { "name": "Get feature flag definition in environment", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/:featureFlagName/environments/:environmentId", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "featureFlagName", "value": "", "type": "path", "description": "The name of the feature flag" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" } ] }, "docs": "Retrieves the full definition of a feature flag in a specific environment, including treatments, targeting rules, default treatment, percentage rollout configuration, and kill status." }, { "info": { "name": "Create feature flag definition in environment", "type": "http" }, "http": { "method": "POST", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/:featureFlagName/environments/:environmentId", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "featureFlagName", "value": "", "type": "path", "description": "The name of the feature flag" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new definition for an existing feature flag in the specified environment. This activates the flag in that environment with the provided targeting rules and treatments." }, { "info": { "name": "Update feature flag definition in environment", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/:featureFlagName/environments/:environmentId", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "featureFlagName", "value": "", "type": "path", "description": "The name of the feature flag" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Partially updates the definition of a feature flag in a specific environment. Supports modifying targeting rules, percentage rollouts, default treatment, and kill status." }, { "info": { "name": "Delete feature flag definition in environment", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/:featureFlagName/environments/:environmentId", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "featureFlagName", "value": "", "type": "path", "description": "The name of the feature flag" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" } ] }, "docs": "Removes the definition of a feature flag from the specified environment, effectively deactivating the flag in that environment." }, { "info": { "name": "List feature flag definitions in environment", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/environments/:environmentId", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return per page" }, { "name": "offset", "value": "", "type": "query", "description": "Number of results to skip for pagination" } ] }, "docs": "Retrieves all feature flag definitions within the specified environment and workspace. Returns the targeting configuration, treatments, and status of each flag." }, { "info": { "name": "Kill feature flag in environment", "type": "http" }, "http": { "method": "PUT", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/:featureFlagName/environments/:environmentId/kill", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "featureFlagName", "value": "", "type": "path", "description": "The name of the feature flag" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" } ] }, "docs": "Kills a feature flag in the specified environment, forcing all evaluations to return the default treatment. This is used as an emergency shut-off mechanism." }, { "info": { "name": "Restore feature flag in environment", "type": "http" }, "http": { "method": "PUT", "url": "https://api.split.io/internal/api/v2/splits/ws/:workspaceId/:featureFlagName/environments/:environmentId/restore", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "name": "featureFlagName", "value": "", "type": "path", "description": "The name of the feature flag" }, { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier or name of the environment" } ] }, "docs": "Restores a previously killed feature flag in the specified environment, resuming normal treatment evaluation based on targeting rules." } ] } ], "bundled": true }