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: */*' 'https://app.metricly.com/policies/###policy-ID-here###/mute/###numeric-value-in-ms####'
    
  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

Join other DevOps who love Metricly!

Sign up for a free, fully featured, 21-day trial. No credit card required!