public function update(MarketingEvent &$marketingEvent)
    {
        $data = $marketingEvent->exportData();
        $endpoint = '/admin/marketing_events/'.$marketingEvent->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'marketing_event' => $data
            )
        );
        $marketingEvent->setData($response['marketing_event']);
    }
public function update(MarketingEvent &$marketingEvent)
    {
        $data = $marketingEvent->exportData();
        $endpoint = '/admin/marketing_events/'.$marketingEvent->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'marketing_event' => $data
            )
        );
        $marketingEvent->setData($response['marketing_event']);
    }
public function update ( MarketingEvent & $ marketingEvent ) { $ data = $ marketingEvent -> exportData ( ) ; $ endpoint = '/admin/marketing_events/' . $ marketingEvent -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'marketing_event' => $ data ) ) ; $ marketingEvent -> setData ( $ response [ 'marketing_event' ] ) ; }
Modify a marketing events

@link   https://help.shopify.com/api/reference/marketing_event#update
@param  MarketingEvent $marketingEvent
@return void
Modify a marketing events