Liftbay
API referenceEnvironments

Import a .env file

POST
/v1/orgs/{org}/projects/{project}/environments/{env}/import

Authorization

cookielb_session<token>

Dashboard session cookie, set by the sign-in endpoints.

Path Parameters

org*string

Organization slug

project*string

Project slug

env*string

Environment slug

Request Body

application/json
  1. body
content*string
Lengthlength <= 256000
visibility*Visibility
Value in"plain""sensitive""secret"
overwrite*boolean

Response Body

OK

application/json
  1. response
added*array<string>
updated*array<string>
skipped*array<>
curl -X POST "https://example.com/v1/orgs/string/projects/string/environments/string/import" \  -H "Content-Type: application/json" \  -d '{    "content": "string",    "visibility": "plain",    "overwrite": true  }'
{  "added": [    "string"  ],  "updated": [    "string"  ],  "skipped": [    {      "key": "string",      "reason": "string"    }  ]}