# Rotate the client secret (returns plaintext once)

`POST /api/oauth/clients/{id}/rotate-secret`

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (path, string, required)
  Type: string

Responses:

- 200: 

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/oauth/clients/string/rotate-secret'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/oauth/clients/string/rotate-secret', {
  method: 'POST',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.post('http://localhost:3000/api/oauth/clients/string/rotate-secret')
print(response.text)
```
