---
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
  - `otel_metrics_ingestion` Configv1OtelMetricsIngestion
    - `created_at` string, date-time — Timestamp of when the OtelMetricsIngestion was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.
    - `resource_attributes` OtelMetricsIngestionResourceAttributes
      - `flatten_mode` 'MERGE' | 'OVERWRITE' | 'IGNORE'
      - `filter_mode` 'APPEND_DEFAULT_EXCLUDE_KEYS' | 'CUSTOM_EXCLUDE_KEYS'
      - `exclude_keys` string[] — Do not copy any resource attribute whose key exactly matches one of the strings in this list.
      - `generate_target_info` boolean — Generate a target_info time series with labels derived from resource attributes. The filter_mode and exclude_keys settings apply in the same way as for the "flatten" operation. The default is false.
  - `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, the OtelMetricsIngestion isn't created or updated, and no response OtelMetricsIngestion will be returned. The response will return an error if the given OtelMetricsIngestion is invalid.

## 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.
    - `updated_at` string, date-time — Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.
    - `resource_attributes` OtelMetricsIngestionResourceAttributes
      - `flatten_mode` 'MERGE' | 'OVERWRITE' | 'IGNORE'
      - `filter_mode` 'APPEND_DEFAULT_EXCLUDE_KEYS' | 'CUSTOM_EXCLUDE_KEYS'
      - `exclude_keys` string[] — Do not copy any resource attribute whose key exactly matches one of the strings in this list.
      - `generate_target_info` boolean — Generate a target_info time series with labels derived from resource attributes. The filter_mode and exclude_keys settings apply in the same way as for the "flatten" operation. The default is false.

## 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.net/chronosphere/apis/config-v1-api.md) · [All operations](https://skmtc.net/chronosphere/apis/config-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chronosphere/config-v1-api/revisions/530951bd2ccf/schema)
