# Creates or updates a PagerDuty MCP integration API key

**PUT** `/v1/integrations/pagerduty-mcp/{id}/api-key`

**Operation ID**: `upsertApiKey_5`
**Summary**: Creates or updates a PagerDuty MCP integration API key
Creates an API key for a PagerDuty MCP integration if it doesn't exist and updates it otherwise. If the key is updated while the integration is being used by a pipeline, the new key will be picked at pipeline restart, rescaling or an update.

## Tags
- PagerDuty MCP Integration
## Parameters

- **id** (required) - path
  - Type: string

## Request Body

**Content-Type**: `application/json`

**Schema**: `SecretApi`

## Responses

### 204

API key upserted successfully.

### 401

Unauthorized

### 404

Integration not found.
