---
title: "PUT /api/v1/config/otel-metrics-ingestion"
method: PUT
path: "/api/v1/config/otel-metrics-ingestion"
tags: ["OtelMetricsIngestion"]
---

# PUT /api/v1/config/otel-metrics-ingestion

`PUT /api/v1/config/otel-metrics-ingestion`

## Request body

- Configv1UpdateOtelMetricsIngestionRequest
  - `create_if_missing` boolean — If `true`, the OtelMetricsIngestion will be created if it does not already exist. If `false`, an error will be returned if the OtelMetricsIngestion does not already exist.
  - `dry_run` boolean — If `true`, validates the specified configuration without creating or updating the OtelMetricsIngestion. If the specified configuration is valid, the endpoint returns a partial response without the OtelMetricsIngestion. If the specified configuration is invalid, the endpoint returns an error.
  - `otel_metrics_ingestion` Configv1OtelMetricsIngestion
    - `created_at` string, date-time — Timestamp of when the OtelMetricsIngestion was created. Cannot be set by clients.
    - `resource_attributes` OtelMetricsIngestionResourceAttributes
      - `exclude_keys` string[] — Specifies resource attributes to exclude. If a resource attribute's key matches any of the strings in this array, that resource attribute is excluded.
      - `filter_mode` 'APPEND_DEFAULT_EXCLUDE_KEYS' | 'CUSTOM_EXCLUDE_KEYS'
      - `flatten_mode` 'MERGE' | 'OVERWRITE' | 'IGNORE'
      - `generate_target_info` boolean — If `true`, generates a `target_info` time series with labels derived from resource attributes. The `filter_mode` and `exclude_keys` settings apply in the same manner that they apply to the `flatten` operation. Default: `false`.
    - `updated_at` string, date-time — Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.

## Response `200`

A successful response containing the updated OtelMetricsIngestion.

- Configv1UpdateOtelMetricsIngestionResponse
  - `otel_metrics_ingestion` Configv1OtelMetricsIngestion
    - `created_at` string, date-time — Timestamp of when the OtelMetricsIngestion was created. Cannot be set by clients.
    - `resource_attributes` OtelMetricsIngestionResourceAttributes
      - `exclude_keys` string[] — Specifies resource attributes to exclude. If a resource attribute's key matches any of the strings in this array, that resource attribute is excluded.
      - `filter_mode` 'APPEND_DEFAULT_EXCLUDE_KEYS' | 'CUSTOM_EXCLUDE_KEYS'
      - `flatten_mode` 'MERGE' | 'OVERWRITE' | 'IGNORE'
      - `generate_target_info` boolean — If `true`, generates a `target_info` time series with labels derived from resource attributes. The `filter_mode` and `exclude_keys` settings apply in the same manner that they apply to the `flatten` operation. Default: `false`.
    - `updated_at` string, date-time — Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.

## Other responses

- `400` — Cannot update the OtelMetricsIngestion because the request is invalid.
- `404` — Cannot update the OtelMetricsIngestion because OtelMetricsIngestion has not been created.
- `500` — An unexpected error response.
- `default` — An undefined error response.

---

[API](https://skmtc.dev/chronosphere/apis/data-v1-api.md) · [All operations](https://skmtc.dev/chronosphere/apis/data-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chronosphere/data-v1-api/revisions/ee91fd539ced/schema)
