def METHOD_NAME(self, id, METHOD_NAME, text='', timeout=None):
    data = {
        'action': METHOD_NAME,
        'text': text,
        'timeout': timeout
    }
    return self.http.put(f'/alert/{id}/action', data)