Change a team's settings
`name` needs `team.manage` (409 `name-taken`, audited as `team.update`). `allow_run_as_user` is for cluster admins only: it lets the team's container services set `runAsUser`, root included; while it is on, the team's namespace enforces Pod Security `baseline` instead of `restricted`. Without it, every workspace pod runs as the UID that owns its volume and a Plan that sets `runAsUser` has the blocker `run-as-not-allowed`. Audited as `team.settings`. A deleting team answers 409 `team-deleting`.
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.
team*integerNumeric resource id.
int641 <= valueapplication/json- body
1 <= propertiesname?TenantName1 to 64 characters without leading or trailing spaces; unique case-insensitively.
^\S(.*\S)?$1 <= length <= 64allow_run_as_user?booleanContainer services of the team may set runAsUser, root included (cluster admins only).
The team.
application/json- response
id*IDNumeric resource id.
int641 <= valueorg_id*stringuuidname*stringrole?TeamRoleThe caller's role; absent when a cluster admin sees a team they are not a member of.
"admin""member"created_at*stringdate-timeallow_run_as_user?booleanContainer services of the team may set runAsUser, root included (a cluster admin sets it with
PATCH /teams/{team}). Absent for an older core.
deleting?booleanThe team is being deleted; it takes no writes. Absent for an older core.
delete_operation_id?stringThe team.delete operation of a deleting team.
uuidpermissions?array<>The caller's permissions on the resource; the UI shows only what they allow. Absent for an older core.
curl -X PATCH 'https://console.example.com/api/v1/teams/1' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": 1, "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "name": "string", "role": "admin", "created_at": "2019-08-24T14:15:22Z", "allow_run_as_user": true, "deleting": true, "delete_operation_id": "2a58cc5e-4ba9-418a-8f8b-9007f099696a", "permissions": [ "string" ]}Override the team's quota
Cluster admins only (`platform.admin`). Replaces the override; quantities it leaves out take the installation default. Workspaces that run keep running when the new quota is smaller; the next create, Sync or wake is checked against it. Audited as `team.quota`.
The JSON Schema of harthelm.yml
`schemas/harthelm.schema.json` (draft 2020-12, schema `harthelm/v1`), served from the binary so editors and code-server's YAML extension never fetch it from the internet. Works without credentials.