create or edit a team.md

Create or Edit a Team

Management API · Teams

PUT https://app.mk.io/api/v1/organization/teams/{team_name}

Create a new team with a unique name, or Edit an existing team.

RBAC Capability Required: core.team.create

Authentication

Path parameters

Name Type Required Description
team_name string Yes

Request body

Content type: application/json

Example request

curl -X PUT "https://app.mk.io/api/v1/organization/teams/{team_name}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "spec": {
    "description": "A description of the Team",
    "members": {},
    "scopes": {}
  }
}'

Responses

200 — Updated

201 — Created

400 — Bad Request

401 — Unauthorized

403 — Forbidden

404 — Not Found

429 — Too Many Requests

500 — Internal Server Error