code: func (s *XPackWatcherExecuteWatchService) buildURL() (string, url.Values, error) {
  	// Build URL
  	var (
  		path string
  		err  error
  	)
  	if s.id != "" {
  		path, err = uritemplates.Expand("/_watcher/watch/{id}/_execute", map[string]string{
  			"id": s.id,
  		})
  	} else {
  		path = "/_watcher/watch/_execute"
  	}
  	if err != nil {
  		return "", url.Values{}, err
  	}
  
  	// Add query string parameters
  	params := url.Values{}
  	if s.pretty {
  		params.Set("pretty", "true")
  	}
  	if s.debug != nil {
  		params.Set("debug", fmt.Sprintf("%v", *s.debug))
  	}
  	return path, params, nil
  }
docs: // buildURL builds the URL for the operation.