code: def _modify(self, **patch):
          
  
          requests_params, patch_uri, session, read_only = \
              self._prepare_put_or_patch(patch)
          self._check_for_boolean_pair_reduction(patch)
          read_only_mutations = []
          for attr in read_only:
              if attr in patch:
                  read_only_mutations.append(attr)
          if read_only_mutations:
              msg = 'Attempted to mutate read-only attribute(s): %s' \
                  % read_only_mutations
              raise AttemptedMutationOfReadOnly(msg)
  
          patch = self._prepare_request_json(patch)
          response = session.patch(patch_uri, json=patch, **requests_params)
          self._local_update(response.json())
docs: Wrapped with modify, override in a subclass to customize.