Orgs
Environments

Replaces an organization environment's sealed value in place. The new .env payload is validated, sealed under the organization key, and never returned. secretRefs replaces the variables delivered from org secrets; when omitted, the environment holds no references afterwards, so it delivers only the payload's keys.

put/v1/orgs/{orgId}/environments/{id}

Request

  • Base URL: https://api.tessl.io
  • URL: https://api.tessl.io/v1/orgs/{orgId}/environments/{id}
  • Auth: none declared

Path parameters

orgIdstring uuid required
idstring uuid required

Headers

Authorizationstring

Request body

envFilestring

Raw .env file contents (KEY=VALUE per line). Blank lines and # comments are ignored. Mutually exclusive with entries.

entriesobject

Environment variables as a KEY=VALUE map. Mutually exclusive with envFile.

secretRefsobject

Variables delivered from org secrets, as a map of variable name to the id of an org secret. A name cannot also carry a plain value.

Response

Default Response

Changes

    • info

      added the new optional request property /

    • info

      added the new optional request property

    • info

      added the required property // to the response with the status

    • breaking

      the //// response's property type changed from no type to string for status

    • warning

      added the new agent-retro enum value to the //// response property for the response status

    • info

      removed subschema #1 subschema #2 from the //// response property anyOf list for the response status