Harthelm Docs

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`.

Generated from openapi/harthelm.yaml at v1.5.0
PUT
/workspaces/{ws}/env

Authorization

cookie__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.

Path Parameters

ws*integer

Numeric resource id.

Formatint64
Range1 <= value

Header Parameters

If-Match?string

ETag of the version the change is based on. Declared optional so that the server, not the request binder, answers a missing header with 428.

Request Body

application/json
  1. body
vars*array<>

At most 256 KiB of names and values together (422 otherwise).

Itemsitems <= 500

Response Body

The variables now.

application/json
  1. response
vars*array<>

At most 256 KiB of names and values together (422 otherwise).

Itemsitems <= 500
curl -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"    }  ]}