> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdateOtelMetricsIngestion



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json PUT /api/v1/config/otel-metrics-ingestion
openapi: 3.0.3
info:
  description: >

    The Config API provides standard HTTP/JSON REST endpoints for creating,
    reading,

    updating, deleting, and listing configurable Chronosphere resources.


    Use this link to download the raw Swagger specification:

    <a href="/api/v1/config/swagger.json">/api/v1/config/swagger.json</a>
  title: Config V1 API
  version: v1
servers:
  - url: https://{tenant}.chronosphere.io
    variables:
      tenant:
        default: tenant
        description: tenant ID assigned by the service provider
security:
  - ApiKeyAuth: []
tags:
  - name: ConfigV1
paths:
  /api/v1/config/otel-metrics-ingestion:
    put:
      tags:
        - OtelMetricsIngestion
      operationId: UpdateOtelMetricsIngestion
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/configv1UpdateOtelMetricsIngestionRequest'
        required: true
        x-originalParamName: body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/configv1UpdateOtelMetricsIngestionResponse
          description: A successful response containing the updated OtelMetricsIngestion.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: >-
            Cannot update the OtelMetricsIngestion because the request is
            invalid.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: >-
            Cannot update the OtelMetricsIngestion because OtelMetricsIngestion
            has not been created.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: An unexpected error response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/genericError'
          description: An undefined error response.
components:
  schemas:
    configv1UpdateOtelMetricsIngestionRequest:
      properties:
        create_if_missing:
          description: >-
            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.
          type: boolean
        dry_run:
          description: >-
            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.
          type: boolean
        otel_metrics_ingestion:
          allOf:
            - $ref: '#/components/schemas/configv1OtelMetricsIngestion'
          description: The OtelMetricsIngestion to update.
      type: object
    configv1UpdateOtelMetricsIngestionResponse:
      properties:
        otel_metrics_ingestion:
          $ref: '#/components/schemas/configv1OtelMetricsIngestion'
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    genericError:
      additionalProperties: true
      type: object
    configv1OtelMetricsIngestion:
      properties:
        created_at:
          description: >-
            Timestamp of when the OtelMetricsIngestion was created. Cannot be
            set by clients.
          format: date-time
          readOnly: true
          type: string
        resource_attributes:
          allOf:
            - $ref: '#/components/schemas/OtelMetricsIngestionResourceAttributes'
          description: >-
            Specifies how to ingest OpenTelemetry resource attributes. These
            attributes

            have no direct equivalent in the internal data model of Chronosphere

            Observability Platform.
        updated_at:
          description: >-
            Timestamp of when the OtelMetricsIngestion was last updated. Cannot
            be set by clients.
          format: date-time
          readOnly: true
          type: string
      type: object
    OtelMetricsIngestionResourceAttributes:
      properties:
        exclude_keys:
          description: >-
            Specifies resource attributes to exclude. If a resource attribute's
            key

            matches any of the strings in this array, that resource attribute is

            excluded.
          items:
            type: string
          type: array
        filter_mode:
          allOf:
            - $ref: '#/components/schemas/ResourceAttributesFilterMode'
          description: >-
            Specifies which filter mode to use for copying resource attributes
            into

            the label set. The `APPEND_DEFAULT_EXCLUDE_KEYS` mode copies all
            resource

            attributes, excluding any that match either the user-supplied

            `exclude_keys` list or a Chronosphere-managed list of suggested

            exclusions. The `CUSTOM_EXCLUDE_KEYS` mode copies all resource

            attributes, excluding any that match the user-supplied
            `exclude_keys`

            list, but is not affected by the Chronosphere-managed list of
            exclusions.

            Default: `APPEND_DEFAULT_EXCLUDE_KEYS`.
        flatten_mode:
          allOf:
            - $ref: '#/components/schemas/ResourceAttributesFlattenMode'
          description: >-
            Specifies how to combine hierarchical OpenTelemetry attributes into
            a

            single set of of labels for a given time series. The `MERGE` mode
            copies

            resource attributes only if there is no conflicting attribute on the

            individual data point. The `OVERWRITE` mode gives resource
            attributes

            precedence over data point attributes. The `IGNORE` mode doesn't
            copy any

            resource attributes into the time series label set. Default:
            `MERGE`.
        generate_target_info:
          description: >-
            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`.
          type: boolean
      type: object
    ResourceAttributesFilterMode:
      enum:
        - APPEND_DEFAULT_EXCLUDE_KEYS
        - CUSTOM_EXCLUDE_KEYS
      type: string
    ResourceAttributesFlattenMode:
      enum:
        - MERGE
        - OVERWRITE
        - IGNORE
      type: string
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````