code: public function updateSnippet(array $snippet)
      {
          $url = $this->_getApiServiceUri(). 'snippet' . '/'.$snippet['name'];
          $result = $this->_fetch($url, \Zend_Http_Client::PUT, $snippet);
  
          return $result;
      }
docs: Update a dynamic snippet
  
  @param array $snippet
  @return bool|mixed
  @throws LocalizedException