# Set a Datadog integration's API keys

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

**Operation ID**: `setDatadogApiKeys`
**Summary**: Set a Datadog integration's API keys
Replaces the integration's entire set of API keys in one atomic write. Existing keys are referenced by id (kept or rotated), new keys carry only a value, and omitted keys are removed; one key is marked as the send key used to write data back to Datadog. If any key is rejected the existing set is left unchanged. All keys are accepted for inbound telemetry. Requires the organization to have multiple Datadog API keys enabled. Adding, removing, relabeling, or rotating a key other than the send key is allowed while the integration's pipeline is running; a change that affects the send key (which key it is, or its value) requires the pipeline to be stopped, since that key is baked into the running Flink job.

## Tags
- Datadog Integration
## Parameters

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

## Request Body

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

**Schema**: `SetApiKeysRequest`

## Responses

### 200

API keys updated successfully

- **Content-Type**: `application/json` / `ReadDatadog`
### 401

Unauthorized

### 404

Integration or a referenced key not found.

### 409

The key count exceeds the limit, or the change affects the send key while the integration is in use by a running pipeline.
