code: public function createHeader($version, array $condition)
      {
          $checkIfExists = $this->getHeader($version, $condition['name']);
          $url = $this->_getApiServiceUri(). 'version/' .$version. '/header';
  
          if ($checkIfExists === false) {
              $verb = \Zend_Http_Client::POST;
          } else {
              $verb = \Zend_Http_Client::PUT;
              $url .= '/'.$condition['name'];
          }
  
          $result = $this->_fetch($url, $verb, $condition);
  
          return $result;
      }
docs: Creates a new header
  
  @param $version
  @param $condition
  @return bool|mixed
  @throws LocalizedException