Skip to main content
PUT
/
api
/
v1
/
config
/
muting-rules
/
{slug}
cURL
curl --request PUT \
  --url https://tenant.chronosphere.io/api/v1/config/muting-rules/{slug} \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "muting_rule": {
    "name": "<string>",
    "comment": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "ends_at": "2023-11-07T05:31:56Z",
    "label_matchers": [
      {
        "name": "<string>",
        "type": "EXACT",
        "value": "<string>"
      }
    ],
    "slug": "<string>",
    "starts_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

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.

dry_run
boolean

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.

muting_rule
object

The MutingRule to update.

Response

A successful response containing the updated MutingRule.

muting_rule
object