{ "item": [ { "id": "853d9c79-ee34-40c3-8db8-6cf674fb707d", "name": "Features", "description": { "content": "Manage feature flags within a project. Features can be toggled on or off and can have remote configuration values.", "type": "text/plain" }, "item": [ { "id": "4997dcf2-115f-448c-8c36-7b4862c27fe9", "name": "List features for a project", "request": { "name": "List features for a project", "description": { "content": "Retrieves a list of all feature flags defined within a specific project. Returns feature metadata including name, type, description, and default values.", "type": "text/plain" }, "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null }, "response": [ { "id": "16cb2552-b69f-48b3-84ae-2a500362db74", "name": "Successful response containing a list of features", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"count\": 743,\n \"next\": \"http://XKaNSjwlMpCWdzbiT.rvsrHzeE98Rh93V95pYz-FlloizD9ov26q4.c2HDUU\",\n \"previous\": \"https://dKbsqMD.ygmMwzBx8j17.-knoCDfZry+2KanRU5jjjvO8sVU9JWT7Qj4-gV8\"\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "2b6dabf0-63e6-4a5a-b8ab-82b259b38ec5", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "GET", "body": {} }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "d6f2dfda-00e7-4e47-8eec-0b382d6754a1", "name": "Project not found", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "GET", "body": {} }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "c2989ac1-2834-4a7b-85a6-4fd7a2ac315e", "name": "Create a feature flag", "request": { "name": "Create a feature flag", "description": { "content": "Creates a new feature flag within a project. The feature will be created across all environments with the specified default values.", "type": "text/plain" }, "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "response": [ { "id": "247f3036-9915-4b6f-a770-a00f0c62c698", "name": "Feature created successfully", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Created", "code": 201, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"id\": 5989,\n \"name\": \"string\",\n \"created_date\": \"1980-09-19T19:25:47.008Z\",\n \"description\": \"string\",\n \"initial_value\": \"string\",\n \"default_enabled\": false,\n \"type\": \"MULTIVARIATE\",\n \"project\": 1783,\n \"is_archived\": false,\n \"owners\": [\n {\n \"id\": 8956,\n \"email\": \"string\"\n },\n {\n \"id\": 91,\n \"email\": \"string\"\n }\n ],\n \"tags\": [\n 4160,\n 2919\n ],\n \"multivariate_options\": [\n {\n \"id\": 3015,\n \"type\": \"string\",\n \"string_value\": \"string\",\n \"integer_value\": 5133,\n \"boolean_value\": false,\n \"default_percentage_allocation\": 10.321274062726172\n },\n {\n \"id\": 8548,\n \"type\": \"string\",\n \"string_value\": \"string\",\n \"integer_value\": 22,\n \"boolean_value\": false,\n \"default_percentage_allocation\": 24.2891975965126\n }\n ]\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "bbb6e9b5-220e-47d0-a2e5-1dc78647935f", "name": "Bad request - validation error", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Bad Request", "code": 400, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "3105356f-13b0-4c33-98f8-a82ed54a0f04", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "0d5ce1fb-9e1b-49af-89c0-6f2e9dffa733", "name": "Project not found", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "936933a6-9958-4efa-bfce-0cf267af6e10", "name": "Get a feature flag", "request": { "name": "Get a feature flag", "description": { "content": "Retrieves the details of a specific feature flag by its ID within a project, including its configuration and multivariate options.", "type": "text/plain" }, "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null }, "response": [ { "id": "4a33f768-ea30-498d-97f0-00da913b3e4f", "name": "Successful response containing the feature details", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"id\": 5989,\n \"name\": \"string\",\n \"created_date\": \"1980-09-19T19:25:47.008Z\",\n \"description\": \"string\",\n \"initial_value\": \"string\",\n \"default_enabled\": false,\n \"type\": \"MULTIVARIATE\",\n \"project\": 1783,\n \"is_archived\": false,\n \"owners\": [\n {\n \"id\": 8956,\n \"email\": \"string\"\n },\n {\n \"id\": 91,\n \"email\": \"string\"\n }\n ],\n \"tags\": [\n 4160,\n 2919\n ],\n \"multivariate_options\": [\n {\n \"id\": 3015,\n \"type\": \"string\",\n \"string_value\": \"string\",\n \"integer_value\": 5133,\n \"boolean_value\": false,\n \"default_percentage_allocation\": 10.321274062726172\n },\n {\n \"id\": 8548,\n \"type\": \"string\",\n \"string_value\": \"string\",\n \"integer_value\": 22,\n \"boolean_value\": false,\n \"default_percentage_allocation\": 24.2891975965126\n }\n ]\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "34d976a1-7112-41f7-b6e8-d6e12a35594f", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "GET", "body": {} }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "fd68ff93-26bd-4c7d-9e6a-500c848b1c85", "name": "Feature or project not found", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "GET", "body": {} }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "110a9031-8f19-4849-9f5d-ea0f2b9e45d0", "name": "Update a feature flag", "request": { "name": "Update a feature flag", "description": { "content": "Updates the details of an existing feature flag including its name, description, type, and multivariate options.", "type": "text/plain" }, "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "PUT", "auth": null, "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "response": [ { "id": "8205e353-8a3b-4e3f-9636-bb9a08f7c2a5", "name": "Feature updated successfully", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "PUT", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"id\": 5989,\n \"name\": \"string\",\n \"created_date\": \"1980-09-19T19:25:47.008Z\",\n \"description\": \"string\",\n \"initial_value\": \"string\",\n \"default_enabled\": false,\n \"type\": \"MULTIVARIATE\",\n \"project\": 1783,\n \"is_archived\": false,\n \"owners\": [\n {\n \"id\": 8956,\n \"email\": \"string\"\n },\n {\n \"id\": 91,\n \"email\": \"string\"\n }\n ],\n \"tags\": [\n 4160,\n 2919\n ],\n \"multivariate_options\": [\n {\n \"id\": 3015,\n \"type\": \"string\",\n \"string_value\": \"string\",\n \"integer_value\": 5133,\n \"boolean_value\": false,\n \"default_percentage_allocation\": 10.321274062726172\n },\n {\n \"id\": 8548,\n \"type\": \"string\",\n \"string_value\": \"string\",\n \"integer_value\": 22,\n \"boolean_value\": false,\n \"default_percentage_allocation\": 24.2891975965126\n }\n ]\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "83d21134-ecb6-4901-8efb-05496d6f5bdd", "name": "Bad request - validation error", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "PUT", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Bad Request", "code": 400, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "b7c1a063-7f11-4ab1-829f-62718490e06f", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "PUT", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "b1f72eba-54c6-40f6-8442-04b1271b000f", "name": "Feature or project not found", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "PUT", "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"initial_value\": \"\",\n \"default_enabled\": \"\",\n \"type\": \"\",\n \"is_archived\": \"\",\n \"tags\": [\n \"\",\n \"\"\n ]\n}", "options": { "raw": { "language": "json" } } } }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "435417fd-e53d-451b-a265-251d55b3465a", "name": "Delete a feature flag", "request": { "name": "Delete a feature flag", "description": { "content": "Permanently deletes a feature flag from a project. This removes the feature from all environments. This action cannot be undone.", "type": "text/plain" }, "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "method": "DELETE", "auth": null }, "response": [ { "id": "44a04eb2-ed9f-435d-8de8-f82ce41ff979", "name": "Feature deleted successfully", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "DELETE", "body": {} }, "status": "No Content", "code": 204, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "2e1b350d-1705-4686-a994-397bb542a4fa", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "DELETE", "body": {} }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "9295a8f4-ef56-42d5-9e21-e3aeb5993f6f", "name": "Feature or project not found", "originalRequest": { "url": { "path": [ "projects", ":project_id", "features", ":feature_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "project_id", "description": "(Required) The unique identifier for the project" }, { "disabled": false, "type": "any", "value": "", "key": "feature_id", "description": "(Required) The unique identifier for the feature" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "DELETE", "body": {} }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "40a120d8-5bba-4af0-b9e0-4e3e2029992b", "name": "List feature states for an environment", "request": { "name": "List feature states for an environment", "description": { "content": "Retrieves a list of all feature states within a specific environment. Feature states represent the enabled status and value of each feature flag within the environment.", "type": "text/plain" }, "url": { "path": [ "environments", ":environment_api_key", "featurestates", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" } ] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null }, "response": [ { "id": "993c7c88-79d1-47c1-bf40-fdea4f706eec", "name": "Successful response containing a list of feature states", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"count\": 743,\n \"next\": \"http://XKaNSjwlMpCWdzbiT.rvsrHzeE98Rh93V95pYz-FlloizD9ov26q4.c2HDUU\",\n \"previous\": \"https://dKbsqMD.ygmMwzBx8j17.-knoCDfZry+2KanRU5jjjvO8sVU9JWT7Qj4-gV8\"\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "85fe6f60-f926-4958-9dea-5b188ee0339a", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "GET", "body": {} }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "b15750ba-d2b3-4358-80b8-ea38b951e24b", "name": "Environment not found", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "GET", "body": {} }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "53f5b224-0c75-4382-a932-572fb5bb54d4", "name": "Update a feature state", "request": { "name": "Update a feature state", "description": { "content": "Updates the state of a feature flag within a specific environment. Allows toggling the enabled status and changing the feature value.", "type": "text/plain" }, "url": { "path": [ "environments", ":environment_api_key", "featurestates", ":feature_state_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" }, { "disabled": false, "type": "any", "value": "", "key": "feature_state_id", "description": "(Required) The unique identifier for the feature state" } ] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "method": "PATCH", "auth": null, "body": { "mode": "raw", "raw": "{\n \"enabled\": \"\",\n \"feature_state_value\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "response": [ { "id": "191a8c6c-1d02-48b0-be6d-791895f0c3f2", "name": "Feature state updated successfully", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", ":feature_state_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" }, { "disabled": false, "type": "any", "value": "", "key": "feature_state_id", "description": "(Required) The unique identifier for the feature state" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "PATCH", "body": { "mode": "raw", "raw": "{\n \"enabled\": \"\",\n \"feature_state_value\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"id\": 8613,\n \"feature\": 5232,\n \"enabled\": true,\n \"feature_state_value\": \"string\",\n \"environment\": 7731,\n \"identity\": 4544,\n \"feature_segment\": 4086\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "c1d05d4f-dd46-4065-be9a-c1067dcf09ab", "name": "Bad request - validation error", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", ":feature_state_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" }, { "disabled": false, "type": "any", "value": "", "key": "feature_state_id", "description": "(Required) The unique identifier for the feature state" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "PATCH", "body": { "mode": "raw", "raw": "{\n \"enabled\": \"\",\n \"feature_state_value\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "status": "Bad Request", "code": 400, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "f8d36a43-c020-43a8-b388-1e73d6b0cbd8", "name": "Unauthorized - invalid or missing API token", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", ":feature_state_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" }, { "disabled": false, "type": "any", "value": "", "key": "feature_state_id", "description": "(Required) The unique identifier for the feature state" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "PATCH", "body": { "mode": "raw", "raw": "{\n \"enabled\": \"\",\n \"feature_state_value\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" }, { "id": "ccdc7978-46cb-4fe9-be39-846d09c920b4", "name": "Feature state or environment not found", "originalRequest": { "url": { "path": [ "environments", ":environment_api_key", "featurestates", ":feature_state_id", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [ { "disabled": false, "type": "any", "value": "", "key": "environment_api_key", "description": "(Required) The API key for the environment" }, { "disabled": false, "type": "any", "value": "", "key": "feature_state_id", "description": "(Required) The unique identifier for the feature state" } ] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" } ], "method": "PATCH", "body": { "mode": "raw", "raw": "{\n \"enabled\": \"\",\n \"feature_state_value\": \"\"\n}", "options": { "raw": { "language": "json" } } } }, "status": "Not Found", "code": 404, "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } } ], "event": [] } ], "event": [], "variable": [ { "type": "string", "value": "https://api.flagsmith.com/api/v1", "key": "baseUrl" } ], "auth": { "type": "apikey", "apikey": [ { "key": "key", "value": "Authorization" }, { "key": "value", "value": "{{apiKey}}" }, { "key": "in", "value": "header" } ] }, "info": { "_postman_id": "242c08f8-a7b6-4958-a054-3f5d3010d245", "name": "Flagsmith Admin Environments Features API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { "content": "The Flagsmith Admin API allows developers to programmatically manage all aspects of their Flagsmith projects. Anything that can be done through the Flagsmith dashboard can also be accomplished via this API, including creating, updating, and deleting projects, environments, feature flags, segments, and users. It uses a secret Organisation API Token for authentication and provides a Swagger interface at api.flagsmith.com/api/v1/docs for interactive exploration.\n\nContact Support:\n Name: Flagsmith Support", "type": "text/plain" } } }