API referenceEnvironments
Create a variable
POST
cookie
lb_session<token>Dashboard session cookie, set by the sign-in endpoints.
org*stringOrganization slug
project*stringProject slug
env*stringEnvironment slug
application/json- body
key*stringMatch
^[A-Z_][A-Z0-9_]*$Length
1 <= length <= 128value*stringLength
length <= 32768visibility*VisibilityValue in
"plain""sensitive""secret"Created
application/json- response
id*stringkey*stringvisibility*VisibilityValue in
"plain""sensitive""secret"value*string|nullupdatedAt*stringupdatedBy*stringcurl -X POST "https://example.com/v1/orgs/string/projects/string/environments/string/variables" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "value": "string", "visibility": "plain" }'{ "id": "string", "key": "string", "visibility": "plain", "value": "string", "updatedAt": "string", "updatedBy": "string"}