---
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

- Base URL: `https://docs.chronosphere.io`
- URL: `https://docs.chronosphere.io/api/v1/config/otel-metrics-ingestion`
- Auth: none declared
- TypeScript: <https://skmtc.dev/chronosphere/apis/config-v1-api/docs/api/v1/config/otel-metrics-ingestion/put.ts> (a function with typed inputs; its response is checked against the schema)

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