code: def reorder(self, user_patterns):
            # noqa: E501
          body = {
              'user-pattern-uris': [up.uri for up in user_patterns]
          }
          self.manager.session.post(
              '/api/console/operations/reorder-user-patterns',
              body=body)
docs: Reorder the User Patterns of the HMC as specified.
  
          The order of User Patterns determines the search order during logon
          processing.
  
          Authorization requirements:
  
          * Task permission to the "Manage User Patterns" task.
  
          Parameters:
  
            user_patterns (list of :class:`~zhmcclient.UserPattern`):
              The User Patterns in the desired order.
  
              Must not be `None`.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`