code: def resolve(self, from_email, resolution=None):
          
          if from_email is None or not isinstance(from_email, six.string_types):
              raise MissingFromEmail(from_email)
  
          endpoint = '/'.join((self.endpoint, self.id,))
          add_headers = {'from': from_email, }
          data = {
              'incident': {
                  'type': 'incident',
                  'status': 'resolved',
              }
          }
  
          if resolution is not None:
              data['resolution'] = resolution
  
          result = self.request('PUT',
                                endpoint=endpoint,
                                add_headers=add_headers,
                                data=data,)
          return result
docs: Resolve an incident using a valid email address.