{ "opencollection": "1.0.0", "info": { "name": "Flagsmith Admin Environments Segments API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "Segments", "type": "folder" }, "items": [ { "info": { "name": "List segments for a project", "type": "http" }, "http": { "method": "GET", "url": "https://api.flagsmith.com/api/v1/projects/:project_id/segments/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The unique identifier for the project" } ] }, "docs": "Retrieves a list of all segments defined within a specific project. Segments define groups of users based on trait-based rules for targeted flag delivery." }, { "info": { "name": "Create a segment", "type": "http" }, "http": { "method": "POST", "url": "https://api.flagsmith.com/api/v1/projects/:project_id/segments/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The unique identifier for the project" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new segment within a project. Segments define groups of users based on trait-based rules and conditions for targeted feature flag delivery." }, { "info": { "name": "Get a segment", "type": "http" }, "http": { "method": "GET", "url": "https://api.flagsmith.com/api/v1/projects/:project_id/segments/:segment_id/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The unique identifier for the project" }, { "name": "segment_id", "value": "", "type": "path", "description": "The unique identifier for the segment" } ] }, "docs": "Retrieves the details of a specific segment by its ID within a project, including its rules and conditions." }, { "info": { "name": "Update a segment", "type": "http" }, "http": { "method": "PUT", "url": "https://api.flagsmith.com/api/v1/projects/:project_id/segments/:segment_id/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The unique identifier for the project" }, { "name": "segment_id", "value": "", "type": "path", "description": "The unique identifier for the segment" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the details of an existing segment including its name, description, and rules." }, { "info": { "name": "Delete a segment", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.flagsmith.com/api/v1/projects/:project_id/segments/:segment_id/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The unique identifier for the project" }, { "name": "segment_id", "value": "", "type": "path", "description": "The unique identifier for the segment" } ] }, "docs": "Permanently deletes a segment from a project. Any segment overrides associated with this segment will also be removed. This action cannot be undone." } ] } ], "bundled": true }