public function update(SmartCollection &$smartCollection)
    {
        $data = $smartCollection->exportData();
        $endpoint = '/admin/smart_collections/'.$smart_collection->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'smart_collection' => $data
            )
        );
        $smartCollection->setData($response['smart_collection']);
    }
public function update(SmartCollection &$smartCollection)
    {
        $data = $smartCollection->exportData();
        $endpoint = '/admin/smart_collections/'.$smart_collection->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'smart_collection' => $data
            )
        );
        $smartCollection->setData($response['smart_collection']);
    }
public function update ( SmartCollection & $ smartCollection ) { $ data = $ smartCollection -> exportData ( ) ; $ endpoint = '/admin/smart_collections/' . $ smart_collection -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'smart_collection' => $ data ) ) ; $ smartCollection -> setData ( $ response [ 'smart_collection' ] ) ; }
Modify an existing smart collection

@link   https://help.shopify.com/api/reference/smartcollection#update
@param  SmartCollection $smartCollection
@return void
Modify an existing smart collection