code: def update(self, obj_id, is_public=NotUpdated, is_protected=NotUpdated):
          
  
          data = {}
          self._copy_if_updated(data, is_public=is_public,
                                is_protected=is_protected)
          return self._patch('/job-executions/%s' % obj_id, data)
docs: Update a Job Execution.