How to Mute Policies via the API Developer Guide

Learn how to mute policies through the API.

1. Get Policy ID.

  1. In Metricly, navigate to the policy you want to mute notifications for.
  2. Copy the policy’s ID from the url.

2. POST the Mute Order to the API

  1. Use this cURL template:
    curl -X POST --header 'Content-Type: application/json' --header 'Accept: */*' --header 'Authorization: Basic {YOUR_BASE64_ENCODED_CREDS}' 'https://app.metricly.com/policies/{policyId}/mute/{muteMs}'
    
  2. Insert the policy ID into the template at ####policy-ID-here####
  3. POST to /policies/{policyId}/mute/{muteMs}

The policy stays muted for the millisecond duration given.

Note: The Request URL is the same policy URL from the cURL sample.

To Delete a Mute Order:

  1. Use this cURL template:
    curl -X DELETE --header 'Accept: */*' 'https://app.metricly.com/policies/####policy-ID-here####/mute'
    
  2. DELETE from /policies/{policyId}/mute
capterra

Ready to get started with Metricly?

Sign up for free, and join DevOps who rate us 5-stars on Capterra!

21-day free trial No credit card required