Replace the security key

rotate_alert_webhook_keyChanges the chart

The app creates or replaces the security key, and shows the new key once.

Details#

Create or replace this member's alert security key. action is required and is create or rotate. create makes a key only when none exists and returns key and created true once. If a key already exists, the call is refused with webhook_key_exists, the existing key is not returned, and nothing changes. rotate always replaces the key, or creates one when none exists, and returns key and created once. created is true only when there was no key before this call. The previous key stops immediately, so call rotate only when the member asks. A later call does not return the key. Saving an alert with a link can create a key this tool has not shown. Use rotate to get a new one, or create only when get_alert_webhook says secret is false. Too many alert changes in a minute is webhook_rate.

Inputs#

NameTypeRequiredDescription
actioncreate | rotateRequiredRequired. create makes a key only when none exists. rotate replaces the key immediately, or creates one when none exists.