# Creates or updates a Datadog MCP integration API key

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

**Operation ID**: `upsertApiKey_3`
**Summary**: Creates or updates a Datadog MCP integration API key
Creates the DD-API-KEY for a Datadog MCP integration if it doesn't exist and updates it otherwise.

## Tags
- Datadog 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.
