Skip to content

Mutings

A Muting represents a rule you've defined to automatically mute certain issues on your reports. Read more about Muting Rules.

Think of a Muting as a rule that defines a matching URL and issue message - when Rocket Validator finds issues on your web pages, they'll be automatically muted if there's a match.

Attributes

ID
Unique Muting ID.
URL Match
A string containing a match for a URL. It can be a full URL or any substring within it.
Message Match
A string defining a match for a Issue. It can be a full issue message, or part of it.
Comment
A brief comment to publicly explain why this muting is needed.

Example

Example: Muting structure

{
  "attributes": {
    "comment": "Non standard but it's a Safari extension",
    "id": 868,
    "message_match": "Attribute “autocorrect” not allowed on element “input” at this point.",
    "url_match": "http://validationhell.com/"
  },
  "id": "868",
  "type": "muting"
}

List your Mutings

To list all your Mutings in your account, send a GET request to /api/v0/mutings.

Example: GET https://rocketvalidator.dev/api/v0/schedules

{
  "data": [
    {
      "attributes": {
        "comment": "Non standard but needed for Safari mobile.",
        "id": 867,
        "message_match": "Attribute “autocomplete” is only allowed when the input type is",
        "url_match": "http://validationhell.com/"
      },
      "id": "867",
      "type": "muting"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "self": "https://rocketvalidator.dev/api/v0/mutings?page[number]=1&page[size]=25"
  }
}

Retrieve a Muting

To retrieve an individual Muting in your account, send a GET request to /api/v0/mutings/$MUTING_ID.

Example: GET https://rocketvalidator.dev/api/v0/mutings/$MUTING_ID

{
  "data": {
    "attributes": {
      "comment": "Non standard but needed for Safari mobile.",
      "id": 867,
      "message_match": "Attribute “autocomplete” is only allowed when the input type is",
      "url_match": "http://validationhell.com/"
    },
    "id": "867",
    "type": "muting"
  },
  "jsonapi": {
    "version": "1.0"
  }
}