# Creates or updates a Datadog integration app key

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

**Operation ID**: `upsertDatadogAppKey`
**Summary**: Creates or updates a Datadog integration app key
Creates an app key for a Datadog 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
- Datadog Integration
## Parameters

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

## Request Body

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

**Schema**: `SecretApi`

## Responses

### 204

App key upserted successfully.

### 400

App key is missing a required authorization scope.

### 401

Unauthorized

### 404

Integration not found.
