lib/ProductsService.php
public function update($id, array $product, array $options = array())
  {
    $attributes = array_intersect_key($product, array_flip(self::$keysToPersist));

    list($code, $updatedProduct) = $this->httpClient->put("/products/{$id}", $attributes, $options);
    return $updatedProduct;
  }
public function update($id, array $product, array $options = array())
  {
    $attributes = array_intersect_key($product, array_flip(self::$keysToPersist));

    list($code, $updatedProduct) = $this->httpClient->put("/products/{$id}", $attributes, $options);
    return $updatedProduct;
  }
public function update ( $ id , array $ product , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ product , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ updatedProduct ) = $ this -> httpClient -> put ( "/products/{$id}" , $ attributes , $ options ) ; return $ updatedProduct ; }
Update a product

put '/products/{id}'

Updates product information
If the specified product does not exist, the request will return an error
<figure class="notice"><p>In order to modify prices used on a record, you need to supply the entire set
<code>prices</code> are replaced every time they are used in a request
</p></figure>

@param integer $id Unique identifier of a Product
@param array $product This array's attributes describe the object to be updated.
@param array $options Additional request's options.

@return array The resulting object representing updated resource.
Update a product