---
title: "Allows setting and clearing admin role for users."
method: PUT
path: "/api/v1/admin"
tags: ["admin"]
---

# Allows setting and clearing admin role for users.

`PUT /api/v1/admin`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v1/admin/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- Admin: Admin represents admin user
  - `email` string: Email address of the admin user
  - `isAdmin` boolean: IsAdmin indicates admin role
  - `name` string: Name of the admin user

## Response `200`

Admin

- Admin: Admin represents admin user
  - `email` string: Email address of the admin user
  - `isAdmin` boolean: IsAdmin indicates admin role
  - `name` string: Name of the admin user

## Other responses

- `401`: EmptyResponse is a empty response
- `403`: EmptyResponse is a empty response
- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
