{ "opencollection": "1.0.0", "info": { "name": "Split Admin Segments API", "version": "2.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Segments", "type": "folder" }, "items": [ { "info": { "name": "List segments", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/segments/ws/:workspaceId", "params": [ { "name": "workspaceId", "value": "", "type": "path", "description": "The unique identifier of the workspace" }, { "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 segments defined within the specified workspace." }, { "info": { "name": "List segments in environment", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/segments/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 segments activated in the specified environment within the given workspace." }, { "info": { "name": "Enable segment in environment", "type": "http" }, "http": { "method": "POST", "url": "https://api.split.io/internal/api/v2/segments/:environmentId/:segmentName", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier of the environment" }, { "name": "segmentName", "value": "", "type": "path", "description": "The name of the segment" } ] }, "docs": "Activates a segment in the specified environment, making it available for use in feature flag targeting rules." }, { "info": { "name": "Deactivate segment in environment", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.split.io/internal/api/v2/segments/:environmentId/:segmentName", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "The unique identifier of the environment" }, { "name": "segmentName", "value": "", "type": "path", "description": "The name of the segment" } ] }, "docs": "Deactivates a segment in the specified environment." } ] } ], "bundled": true }