Harthelm Docs

Create a team

Organization owners and cluster admins (`org.create_team` on `org_id`). A creator who is a member of the organization becomes the team's admin. 409 `name-taken` when the organization has a team of that name.

Generated from openapi/harthelm.yaml at v1.5.0
POST
/teams

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.

Header Parameters

Idempotency-Key?string

Client-chosen key (at most 255 characters); a repeated key returns the first result for 24 h.

Length1 <= length <= 255

Request Body

application/json
  1. body
org_id*string
Formatuuid
name*TenantName

1 to 64 characters without leading or trailing spaces; unique case-insensitively.

Match^\S(.*\S)?$
Length1 <= length <= 64

Response Body

The team.

application/json
  1. response
id*ID

Numeric resource id.

Formatint64
Range1 <= value
org_id*string
Formatuuid
name*string
role?TeamRole

The caller's role; absent when a cluster admin sees a team they are not a member of.

Value in"admin""member"
created_at*string
Formatdate-time
allow_run_as_user?boolean

Container services of the team may set runAsUser, root included (a cluster admin sets it with PATCH /teams/{team}). Absent for an older core.

deleting?boolean

The team is being deleted; it takes no writes. Absent for an older core.

delete_operation_id?string

The team.delete operation of a deleting team.

Formatuuid
permissions?array<>

The caller's permissions on the resource; the UI shows only what they allow. Absent for an older core.

curl -X POST 'https://console.example.com/api/v1/teams' \  -H 'Content-Type: application/json' \  -d '{  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "name": "string"}'
{  "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"  ]}