Replace the workspace env vars
Replaces the whole set (the UI's bulk `.env` upload sends everything). New terminals see the change at once, prepare and test at their next start, services at the next Sync, which pins every service's environment. Needs `landscape.manage`.
openapi/harthelm.yaml at v1.5.0__Host-harthelm_session<token>Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header
Harthelm-CSRF: 1 and a matching Origin.
ws*integerNumeric resource id.
int641 <= valueIf-Match?stringETag of the version the change is based on. Declared optional so that the server, not the request binder, answers a missing header with 428.
application/json- body
vars*array<>At most 256 KiB of names and values together (422 otherwise).
items <= 500The variables now.
application/json- response
vars*array<>At most 256 KiB of names and values together (422 otherwise).
items <= 500curl -X PUT 'https://console.example.com/api/v1/workspaces/1/env' \ -H 'Content-Type: application/json' \ -d '{ "vars": [ { "name": "string", "value": "string" } ]}'{ "vars": [ { "name": "string", "value": "string" } ]}Get the workspace env vars
Variables every terminal, `prepare`, `test` and every service see. They are not secret; use the vault for secrets. Needs `workspace.view`.
Live events (SSE)
A `text/event-stream` of `Event`s the caller may see (filtered by the authorizer), fed by PostgreSQL `LISTEN/NOTIFY`. Each event is `id: <n>`, `event: <type>`, `data: <Event as JSON>`; a comment line (`: ping`) is sent every 25 s. There is no replay: the first event is always `ready`, sent once the subscription is live, and a client refetches what it shows after every `ready` (also after a reconnect).