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

# UpdateMutingRule



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json PUT /api/v1/config/muting-rules/{slug}
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/muting-rules/{slug}:
    put:
      tags:
        - MutingRule
      operationId: UpdateMutingRule
      parameters:
        - in: path
          name: slug
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigV1UpdateMutingRuleBody'
        required: true
        x-originalParamName: body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/configv1UpdateMutingRuleResponse'
          description: A successful response containing the updated MutingRule.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: Cannot update the MutingRule because the request is invalid.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: Cannot update the MutingRule because the slug does not exist.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: >-
            Cannot update the MutingRule because there is a conflict with an
            existing MutingRule.
        '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:
    ConfigV1UpdateMutingRuleBody:
      properties:
        create_if_missing:
          description: >-
            If `true`, the MutingRule will be created if it does not already
            exist, identified by `slug`. If `false`, an error will be returned
            if the MutingRule does not already exist.
          type: boolean
        dry_run:
          description: >-
            If `true`, validates the specified configuration without creating or
            updating the MutingRule. If the specified configuration is valid,
            the endpoint returns a partial response without the MutingRule. If
            the specified configuration is invalid, the endpoint returns an
            error.
          type: boolean
        muting_rule:
          allOf:
            - $ref: '#/components/schemas/configv1MutingRule'
          description: The MutingRule to update.
      type: object
    configv1UpdateMutingRuleResponse:
      properties:
        muting_rule:
          $ref: '#/components/schemas/configv1MutingRule'
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    genericError:
      additionalProperties: true
      type: object
    configv1MutingRule:
      properties:
        comment:
          description: Descriptive comment that explains why the muting rule was created.
          type: string
        created_at:
          description: >-
            Timestamp of when the MutingRule was created. Cannot be set by
            clients.
          format: date-time
          readOnly: true
          type: string
        ends_at:
          description: Required. Timestamp of when the muting rule stops being active.
          format: date-time
          type: string
        label_matchers:
          description: >-
            Required. Specifies which series are silenced by the muting rule.
            Alerting

            series must match all muting rule matchers to be silenced. You can't
            update this

            value. Updates must specify the original value.
          items:
            $ref: '#/components/schemas/configv1MutingRuleLabelMatcher'
          type: array
        name:
          description: >-
            The name of the MutingRule. You can modify this value after the
            MutingRule is created.
          type: string
        slug:
          description: >-
            The unique identifier of the MutingRule. If a `slug` isn't provided,
            one is generated based on the `name` field. You can't modify this
            field after the MutingRule is created.
          type: string
        starts_at:
          description: >-
            Required. Timestamp of when the muting rule becomes active. You
            can't update

            this value. Updates must specify the original value.
          format: date-time
          type: string
        updated_at:
          description: >-
            Timestamp of when the MutingRule was last updated. Cannot be set by
            clients.
          format: date-time
          readOnly: true
          type: string
      required:
        - name
      type: object
    configv1MutingRuleLabelMatcher:
      properties:
        name:
          description: Required. Always matches against an exact label name.
          type: string
        type:
          allOf:
            - $ref: '#/components/schemas/configv1MutingRuleLabelMatcherMatcherType'
          description: Required. Determines how the label value is matched.
        value:
          description: >-
            Required. Matches against a label value based on the configured
            type.
          type: string
      type: object
    configv1MutingRuleLabelMatcherMatcherType:
      enum:
        - EXACT
        - REGEX
        - NOT_EXACT
        - NOT_REGEXP
      type: string
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````