public function update(CustomCollection &$customCollection)
    {
        $data = $customCollection->exportData();
        $endpoint = '/admin/custom_collections/'.$customCollection->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'custom_collection' => $data
            )
        );
        $customCollection->setData($response['custom_collection']);
    }
public function update(CustomCollection &$customCollection)
    {
        $data = $customCollection->exportData();
        $endpoint = '/admin/custom_collections/'.$customCollection->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'custom_collection' => $data
            )
        );
        $customCollection->setData($response['custom_collection']);
    }
public function update ( CustomCollection & $ customCollection ) { $ data = $ customCollection -> exportData ( ) ; $ endpoint = '/admin/custom_collections/' . $ customCollection -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'custom_collection' => $ data ) ) ; $ customCollection -> setData ( $ response [ 'custom_collection' ] ) ; }
Update a custom collection

@link   https://help.shopify.com/api/reference/customcollection#update
@param  CustomCollection $customCollection
@return void
Update a custom collection