code: def update(self, incident_id, name=None, message=None, status=None,
                 visible=None, component_id=None, component_status=None,
                 notify=None, created_at=None, template=None, tpl_vars=None):
          
          data = ApiParams()
          data['name'] = name
          data['message'] = message
          data['status'] = status
          data['visible'] = visible
          data['component_id'] = component_id
          data['component_status'] = component_status
          data['notify'] = notify
          data['created_at'] = created_at
          data['template'] = template
          data['vars'] = tpl_vars
          return self._put('incidents/%s' % incident_id, data=data)['data']
docs: Update an Incident
  
          :param int incident_id: Incident ID
          :param str name: Name of the incident
          :param str message: Incident explanation message
          :param int status: Status of the incident
          :param int visible: Whether the incident is publicly visible
          :param int component_id: Component to update
          :param int component_status: The status to update the given component
          :param bool notify: Whether to notify subscribers
          :param str created_at: When the incident was created
          :param str template: The template slug to use
          :param list tpl_vars: The variables to pass to the template
          :return: Created incident data (:class:`dict`)
  
          .. seealso:: https://docs.cachethq.io/reference#update-an-incident