Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Felan","colors":{"primary":"#255F44","light":"#255F44","dark":"#2F7F59"},"logo":{"light":"https://mintcdn.com/bugzyai/3VbTUWurxDSfpjW6/images/logo.png?fit=max\u0026auto=format\u0026n=3VbTUWurxDSfpjW6\u0026q=85\u0026s=a2fca098c88aa41cbf07bb9ceedf7151","dark":"https://mintcdn.com/bugzyai/3VbTUWurxDSfpjW6/images/logo.png?fit=max\u0026auto=format\u0026n=3VbTUWurxDSfpjW6\u0026q=85\u0026s=a2fca098c88aa41cbf07bb9ceedf7151"},"favicon":"https://mintcdn.com/bugzyai/3VbTUWurxDSfpjW6/images/favicon.ico?fit=max\u0026auto=format\u0026n=3VbTUWurxDSfpjW6\u0026q=85\u0026s=3e3acaf53bcc8138ad04c1f315fdfa44","search":{"prompt":"Search Felan docs..."},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bugzyai","hasAudioNarration":false,"actualSubdomain":"bugzyai","customDomains":["felan.ai"],"gitSource":{"type":"github","owner":"felan-ai","repo":"felan-platform","deployBranch":"main","contentDirectory":"docs/public","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae49437737a5e6c8f1124c6","collectionId":"b3b85dba-1ad8-4ea5-90ff-e12174fe18b0","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae49437737a5e6c8f1124c6"},"entitlements":{},"buildId":"6ae986eceb27dc166d85bd19","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":42},{"language":"default","tag":"Endpoints","count":40},{"language":"default","tag":"Documentation","count":39},{"language":"default","tag":"Integrations","count":23},{"language":"default","tag":"Automations","count":7},{"language":"default","tag":"Sessions","count":7},{"language":"default","tag":"Platform screens","count":6},{"language":"default","tag":"Skills","count":6},{"language":"default","tag":"Issue tracking","count":5},{"language":"default","tag":"Use cases","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/environment-variables/create-or-replace-a-team-environment-variable","slug":"/api-reference/environment-variables/create-or-replace-a-team-environment-variable","pageMetadata":{"title":"Create or replace a team environment variable","description":"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/env-vars","href":"/api-reference/environment-variables/create-or-replace-a-team-environment-variable","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create or replace a team environment variable","description":"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/env-vars","href":"/api-reference/environment-variables/create-or-replace-a-team-environment-variable","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create or replace a team environment variable","description":"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.","operationId":"upsertTeamEnvironmentVariable","tags":["Environment Variables"],"parameters":["29dd6052-d3f5-4f24-9fc3-707536d4729d"],"requestBody":"e3784296-efa5-438f-9535-57e3cd0e0a63","responses":{"201":"38d88c95-5d9b-4bba-b9c2-c63d05491b36","400":"4a64172d-601b-4498-8e84-c75ec43442d3","401":"e9d7c50d-e27b-426a-9754-2b303ef82373","404":"10091fbb-3944-45af-8de1-0bba60d3ce8f","409":"d9d461a4-4d72-40ac-af8a-016be4718f8e","429":"8354aa3f-f0bd-4d64-9100-77ab6dea0eb4","500":"76fa0217-7aa3-48cb-8189-1b885f7a1d12"},"method":"post","type":"path","servers":["d07d4717-9464-4710-aedd-262eacc3b363"],"security":["8ca85660-c45b-4be1-918d-ded7e81943ab"],"path":"/teams/{teamSlug}/env-vars","baseUrlOptions":["https://app.felan.ai/api/v1"],"title":"Create or replace a team environment variable","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"29dd6052-d3f5-4f24-9fc3-707536d4729d":{"name":"teamSlug","in":"path","required":true,"description":"Felan team slug shown in dashboard URLs and Team Settings","schema":{"type":"string","minLength":1,"isRequired":true,"description":"Felan team slug shown in dashboard URLs and Team Settings","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"Trimmed and uppercased before validation against ^[A-Z_][A-Z0-9_]*$.","example":"BASE_URL","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"value","typeLabel":"string"},"is_secret":{"type":"boolean","default":true,"uniqueKey":"is_secret","typeLabel":"boolean"},"source":{"type":"string","default":"user","uniqueKey":"source","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"uniqueKey":"metadata","typeLabel":"object"},"environment":{"type":"string","description":"Environment slug","uniqueKey":"environment","typeLabel":"string"},"environment_id":{"type":"string","format":"uuid","uniqueKey":"environment_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"BASE_URL","value":"\u003cstring>","is_secret":true,"source":"user","metadata":{},"environment":"\u003cstring>","environment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"38d88c95-5d9b-4bba-b9c2-c63d05491b36":{"description":"Environment variable stored","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","team_id","name","has_value","is_secret","environment_id","source","metadata","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"team_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.team_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","example":"BASE_URL","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"has_value":{"type":"boolean","isRequired":true,"uniqueKey":"data.has_value","typeLabel":"boolean"},"is_secret":{"type":"boolean","isRequired":true,"uniqueKey":"data.is_secret","typeLabel":"boolean"},"environment_id":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.environment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"data.environment_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.environment_id","typeLabel":"string\u003cuuid> | null"},"source":{"type":"string","isRequired":true,"uniqueKey":"data.source","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"data.metadata","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"},"source_scope":{"type":"string","enum":["default","environment"],"uniqueKey":"data.source_scope","typeLabel":"enum\u003cstring>"},"created_by":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.created_by.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.created_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.created_by","typeLabel":"string\u003cuuid> | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","team_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"BASE_URL","has_value":true,"is_secret":true,"environment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","source":"\u003cstring>","metadata":{},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","source_scope":"default","created_by":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4a64172d-601b-4498-8e84-c75ec43442d3":{"description":"Missing or invalid environment-variable field","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["VALIDATION_ERROR","UNAUTHORIZED","NOT_FOUND","SKILL_SOURCE_UNAVAILABLE","EXECUTION_DENIED","CONFLICT","RATE_LIMITED","SESSION_START_FAILED","SESSION_PUBLISH_FAILED","MESSAGE_PUBLISH_FAILED","INTERNAL_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e9d7c50d-e27b-426a-9754-2b303ef82373":{"description":"Missing or invalid team API key","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["VALIDATION_ERROR","UNAUTHORIZED","NOT_FOUND","SKILL_SOURCE_UNAVAILABLE","EXECUTION_DENIED","CONFLICT","RATE_LIMITED","SESSION_START_FAILED","SESSION_PUBLISH_FAILED","MESSAGE_PUBLISH_FAILED","INTERNAL_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"10091fbb-3944-45af-8de1-0bba60d3ce8f":{"description":"Resource missing or outside the authenticated team","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["VALIDATION_ERROR","UNAUTHORIZED","NOT_FOUND","SKILL_SOURCE_UNAVAILABLE","EXECUTION_DENIED","CONFLICT","RATE_LIMITED","SESSION_START_FAILED","SESSION_PUBLISH_FAILED","MESSAGE_PUBLISH_FAILED","INTERNAL_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d9d461a4-4d72-40ac-af8a-016be4718f8e":{"description":"Concurrent create conflict","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["VALIDATION_ERROR","UNAUTHORIZED","NOT_FOUND","SKILL_SOURCE_UNAVAILABLE","EXECUTION_DENIED","CONFLICT","RATE_LIMITED","SESSION_START_FAILED","SESSION_PUBLISH_FAILED","MESSAGE_PUBLISH_FAILED","INTERNAL_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8354aa3f-f0bd-4d64-9100-77ab6dea0eb4":{"description":"Team API key rate limit exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["VALIDATION_ERROR","UNAUTHORIZED","NOT_FOUND","SKILL_SOURCE_UNAVAILABLE","EXECUTION_DENIED","CONFLICT","RATE_LIMITED","SESSION_START_FAILED","SESSION_PUBLISH_FAILED","MESSAGE_PUBLISH_FAILED","INTERNAL_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"76fa0217-7aa3-48cb-8189-1b885f7a1d12":{"description":"The server could not complete the request","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["VALIDATION_ERROR","UNAUTHORIZED","NOT_FOUND","SKILL_SOURCE_UNAVAILABLE","EXECUTION_DENIED","CONFLICT","RATE_LIMITED","SESSION_START_FAILED","SESSION_PUBLISH_FAILED","MESSAGE_PUBLISH_FAILED","INTERNAL_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"8ca85660-c45b-4be1-918d-ded7e81943ab":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Team API key. Current keys retain the bzy_team_ compatibility prefix.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"d07d4717-9464-4710-aedd-262eacc3b363":{"url":"https://app.felan.ai/api/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Team API key. Current keys retain the bzy_team_ compatibility prefix.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Team API key. Current keys retain the bzy_team_ compatibility prefix.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi/v1.json"},"subdomain":"bugzyai","siteName":"Felan","title":"Create or replace a team environment variable - Felan","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T07:02:08.616Z","originalFileLocation":"api-reference/environment-variables/create-or-replace-a-team-environment-variable.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Felan\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create or replace a team environment variable - Felan\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Felan\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bugzyai.mintlify.app/_mintlify/api/og/v2?division=Environment+Variables\u0026amp;title=Create+or+replace+a+team+environment+variable\u0026amp;description=Creates+the+variable+in+the+selected+environment+scope+or+updates+the+existing+variable+with+the+same+normalized+name.+Plaintext+values+are+never+returned.\u0026amp;theme=ea332c586dacddd0fc98ff82\u0026amp;signature=2336e699ef697b6ad5f2a1feeb522977fce937ec7c410ed98ac873b2ec16a1d6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create or replace a team environment variable - Felan\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bugzyai.mintlify.app/_mintlify/api/og/v2?division=Environment+Variables\u0026amp;title=Create+or+replace+a+team+environment+variable\u0026amp;description=Creates+the+variable+in+the+selected+environment+scope+or+updates+the+existing+variable+with+the+same+normalized+name.+Plaintext+values+are+never+returned.\u0026amp;theme=ea332c586dacddd0fc98ff82\u0026amp;signature=2336e699ef697b6ad5f2a1feeb522977fce937ec7c410ed98ac873b2ec16a1d6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/bugzyai/AhQyouriKaMesrUU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Felan\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#255F44\">\u003clink data-mint-head rel=\"canonical\" href=\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://felan.ai/#organization\",\"name\":\"Felan\",\"url\":\"https://felan.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bugzyai/3VbTUWurxDSfpjW6/images/logo.png?fit=max\u0026auto=format\u0026n=3VbTUWurxDSfpjW6\u0026q=85\u0026s=a2fca098c88aa41cbf07bb9ceedf7151\"}},{\"@type\":\"WebSite\",\"@id\":\"https://felan.ai/docs#website\",\"name\":\"Felan\",\"url\":\"https://felan.ai/docs\",\"publisher\":{\"@id\":\"https://felan.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable#webpage\",\"url\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable\",\"name\":\"Create or replace a team environment variable\",\"description\":\"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.\",\"dateModified\":\"2026-11-03T07:02:08.616Z\",\"isPartOf\":{\"@id\":\"https://felan.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://felan.ai/docs/api-reference/hosts/start-browser-pairing-for-a-machine\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Environment Variables\",\"item\":\"https://felan.ai/docs/api-reference/environment-variables/list-resolved-team-environment-variables\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create or replace a team environment variable\",\"item\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable#apireference\",\"headline\":\"Create or replace a team environment variable\",\"name\":\"Create or replace a team environment variable\",\"description\":\"Creates the variable in the selected environment scope or updates the existing variable with the same normalized name. Plaintext values are never returned.\",\"url\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable\",\"mainEntityOfPage\":{\"@id\":\"https://felan.ai/docs/api-reference/environment-variables/create-or-replace-a-team-environment-variable#webpage\"},\"dateModified\":\"2026-11-03T07:02:08.616Z\",\"publisher\":{\"@id\":\"https://felan.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://felan.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Felan\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Felan","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Sessions","href":"/platform/sessions"}]},{"group":"Endpoints","pages":[{"group":"Hosts","pages":[{"title":"Start browser pairing for a machine","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /hosts/pairings","href":"/api-reference/hosts/start-browser-pairing-for-a-machine"},{"title":"Poll a browser pairing for the machine credential","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /hosts/pairings/poll","href":"/api-reference/hosts/poll-a-browser-pairing-for-the-machine-credential"},{"title":"Exchange a machine credential for a scoped host token","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /hosts/token","href":"/api-reference/hosts/exchange-a-machine-credential-for-a-scoped-host-token"}]},{"group":"OpenAPI","pages":[{"title":"Get the OpenAPI specification","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /openapi.json","href":"/api-reference/openapi/get-the-openapi-specification"}]},{"group":"Teams","pages":[{"title":"Get a team","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}","href":"/api-reference/teams/get-a-team"},{"title":"List team members","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/members","href":"/api-reference/teams/list-team-members"},{"title":"Invite a team member","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/invitations","href":"/api-reference/teams/invite-a-team-member"}]},{"group":"Integrations","pages":[{"title":"List team integration records","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/integrations","href":"/api-reference/integrations/list-team-integration-records"}]},{"group":"Environments","pages":[{"title":"List team environments","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/environments","href":"/api-reference/environments/list-team-environments"},{"title":"Create a team environment","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/environments","href":"/api-reference/environments/create-a-team-environment"}]},{"group":"Environment Variables","pages":[{"title":"List resolved team environment variables","description":"Returns variable names and metadata without plaintext values. Environment-specific variables override team defaults with the same name.","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/env-vars","href":"/api-reference/environment-variables/list-resolved-team-environment-variables"},{"title":"Create or replace a team environment variable","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/env-vars","href":"/api-reference/environment-variables/create-or-replace-a-team-environment-variable"},{"title":"Update a team environment variable","description":"Updates the value, secret flag, or metadata of an existing variable in the team defaults or a selected environment. Values are never returned.","deprecated":null,"version":null,"openapi":"/openapi/v1.json put /teams/{teamSlug}/env-vars/{name}","href":"/api-reference/environment-variables/update-a-team-environment-variable"},{"title":"Delete a team environment variable","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /teams/{teamSlug}/env-vars/{name}","href":"/api-reference/environment-variables/delete-a-team-environment-variable"}]},{"group":"Skills","pages":[{"title":"List team skills","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/skills","href":"/api-reference/skills/list-team-skills"},{"title":"Scan a public GitHub repository for skills","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/skills/scan","href":"/api-reference/skills/scan-a-public-github-repository-for-skills"},{"title":"Import selected team skills","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/skills/import","href":"/api-reference/skills/import-selected-team-skills"},{"title":"Get team skill metadata","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/skills/{skillId}","href":"/api-reference/skills/get-team-skill-metadata"},{"title":"Remove a team skill","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /teams/{teamSlug}/skills/{skillId}","href":"/api-reference/skills/remove-a-team-skill"},{"title":"Refresh a team skill","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/skills/{skillId}/refresh","href":"/api-reference/skills/refresh-a-team-skill"}]},{"group":"Subagents","pages":[{"title":"List custom team subagents","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/subagents","href":"/api-reference/subagents/list-custom-team-subagents"},{"title":"Create a custom team subagent","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/subagents","href":"/api-reference/subagents/create-a-custom-team-subagent"},{"title":"Get a custom team subagent","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/subagents/{subagentId}","href":"/api-reference/subagents/get-a-custom-team-subagent"},{"title":"Delete a custom team subagent","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /teams/{teamSlug}/subagents/{subagentId}","href":"/api-reference/subagents/delete-a-custom-team-subagent"},{"title":"Update a custom team subagent","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /teams/{teamSlug}/subagents/{subagentId}","href":"/api-reference/subagents/update-a-custom-team-subagent"}]},{"group":"Automations","pages":[{"title":"Get team automation setup context","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/automations/setup","href":"/api-reference/automations/get-team-automation-setup-context"},{"title":"List team automations","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/automations","href":"/api-reference/automations/list-team-automations"},{"title":"Create a team automation","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/automations","href":"/api-reference/automations/create-a-team-automation"},{"title":"Get a team automation","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/automations/{automationId}","href":"/api-reference/automations/get-a-team-automation"},{"title":"Replace a team automation","deprecated":null,"version":null,"openapi":"/openapi/v1.json put /teams/{teamSlug}/automations/{automationId}","href":"/api-reference/automations/replace-a-team-automation"},{"title":"Delete a team automation","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /teams/{teamSlug}/automations/{automationId}","href":"/api-reference/automations/delete-a-team-automation"},{"title":"Update a team automation","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /teams/{teamSlug}/automations/{automationId}","href":"/api-reference/automations/update-a-team-automation"}]},{"group":"Sessions","pages":[{"title":"List team sessions","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/sessions","href":"/api-reference/sessions/list-team-sessions"},{"title":"Start a team session","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/sessions","href":"/api-reference/sessions/start-a-team-session"},{"title":"Get a team session","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/sessions/{sessionId}","href":"/api-reference/sessions/get-a-team-session"},{"title":"Send a session follow-up","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/sessions/{sessionId}/messages","href":"/api-reference/sessions/send-a-session-follow-up"},{"title":"Steer a running session","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/sessions/{sessionId}/steer","href":"/api-reference/sessions/steer-a-running-session"},{"title":"Kill a running session","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/sessions/{sessionId}/kill","href":"/api-reference/sessions/kill-a-running-session"},{"title":"Read a session transcript","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /teams/{teamSlug}/sessions/{sessionId}/transcript","href":"/api-reference/sessions/read-a-session-transcript"}]},{"group":"Events","pages":[{"title":"Send a team event","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /teams/{teamSlug}/webhooks/events","href":"/api-reference/events/send-a-team-event"}]}]}]}]},"basePath":"","title":"Create or replace a team environment variable - Felan","buildId":"dpl_Acry4NrQAgjcikyFgVE2eJ7XQCAv","deploymentId":"dpl_Acry4NrQAgjcikyFgVE2eJ7XQCAv","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C2Ap4tLG.js","utils-DOQ4WuIX.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-PBLA84v6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BSX8gB2N.js","snippetPresets-DEKVfaPa.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BSZ21_fK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Bd7Ye-9k.js","shallow-Yd0HfeLO.js","getApiPlaygroundDisplay-CLdBbHLF.js","CodeSnippet-BJnsDPfe.js","CodeSnippets-CdAH7YRl.js","Page-CFXBIa-t.js","getPastedJson-Wsal3Fw6.js","icon-WwS_mnlk.js","MethodPill-CYxxzIKu.js","DuplicateIcon-CejZ8LQc.js","createIcon-DKEFCi_0.js","DynamicMarkdown-BCpKo5ib.js","SectionHeading-ClsMcgQm.js","axios-vUo_bRtp.js","Markdown-BI-KM0cT.js","clsx-Cc5SnnvQ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DOFIgHLg.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-1_MZUC6c.js"]}