code: func (op *Operator) AutopilotSetConfiguration(args *structs.AutopilotSetConfigRequest, reply *bool) error {
  	if done, err := op.srv.forward("Operator.AutopilotSetConfiguration", args, args, reply); done {
  		return err
  	}
  
  	// This action requires operator write access.
  	rule, err := op.srv.ResolveToken(args.Token)
  	if err != nil {
  		return err
  	}
  	if rule != nil && !rule.OperatorWrite() {
  		return acl.ErrPermissionDenied
  	}
  
  	// Apply the update
  	resp, err := op.srv.raftApply(structs.AutopilotRequestType, args)
  	if err != nil {
  		op.srv.logger.Printf("[ERR] consul.operator: Apply failed: %v", err)
  		return err
  	}
  	if respErr, ok := resp.(error); ok {
  		return respErr
  	}
  
  	// Check if the return type is a bool.
  	if respBool, ok := resp.(bool); ok {
  		*reply = respBool
  	}
  	return nil
  }
docs: // AutopilotSetConfiguration is used to set the current Autopilot configuration.