# Regenerate Plane integration API key and secret.

`POST /api/integration/plane/regenerate-key`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `organizationId` (query, string, required)
  Type: string

Responses:

- 200: API key regenerated successfully.

- 404: Plane integration not configured.

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/integration/plane/regenerate-key?organizationId=string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/integration/plane/regenerate-key?organizationId=string', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

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

### Python

```python
import requests

response = requests.post(
    'http://localhost:3000/api/integration/plane/regenerate-key?organizationId=string',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
