Organization variables & secrets
Create an organization variable or secret
Defines one organization-owned entry and targets it at all agents or a selected set. A secret value is write-only: it is accepted here and never returned. all enrolls every agent the caller may edit and auto-enrolls agents on later authorized configuration writes; it never reaches an agent the caller cannot manage, and it skips an agent placed on a daemon that does not yet support organization environment entries (that agent enrolls on a later configuration write once its daemon is upgraded). key and kind are immutable afterwards.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/environment" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "kind": "variable", "value": "string", "audience": "all" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "key": "string", "kind": "variable", "variableValue": "string", "secretConfigured": true, "audience": "all", "visibleAgentIds": [ "606a9edf-a597-4ef8-acd5-c88a5f3ab904" ], "version": 1, "createdAt": "string", "updatedAt": "string"}