> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate a new Managed Kafka admin password

> Gives the cluster's admin user a new random password and returns it once. Clients using the old password stop connecting as soon as the new one is live. If it is not live yet, the response has a warning and no password; get it from the admin credentials later. Returns 409 if the cluster isn't active, another change of its password is running, or it was built before password login and has no admin password to change. Company admins only.

`POST /kafka-clusters/{uuid}/admin-credentials/rotate`

## Authorization

* `Authorization` (header): API key passed as a Bearer token in the Authorization header.

## Path parameters

* `uuid` (string, required)

## Example request

```bash
curl --request POST \
  --url https://api.artie.com/kafka-clusters/{uuid}/admin-credentials/rotate \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 OK

* `password` (string): The new admin password. Shown once, unless the response has a warning.
* `warning` (string)

```json
{
  "password": "<string>",
  "warning": "<string>"
}
```

### 400 Bad Request

### 404 Not Found

### 409 Conflict

### 500 Internal Server Error