public function update(array $contact_template)
    {
        if(!isset($contact_template['id'])) {
            throw new MonetivoException('$contact["type"] and $contact["id"] are required');
        }

        return $this->merchantApi->call('put', 'contacts_templates/' . $contact_template['id'], [
            'form_params' => $contact_template
        ])->toArray();
    }
public function update(array $contact_template)
    {
        if(!isset($contact_template['id'])) {
            throw new MonetivoException('$contact["type"] and $contact["id"] are required');
        }

        return $this->merchantApi->call('put', 'contacts_templates/' . $contact_template['id'], [
            'form_params' => $contact_template
        ])->toArray();
    }
public function update ( array $ contact_template ) { if ( ! isset ( $ contact_template [ 'id' ] ) ) { throw new MonetivoException ( '$contact["type"] and $contact["id"] are required' ) ; } return $ this -> merchantApi -> call ( 'put' , 'contacts_templates/' . $ contact_template [ 'id' ] , [ 'form_params' => $ contact_template ] ) -> toArray ( ) ; }
Updates contact template
@param array $contact_template
@return array
@throws MonetivoException
Updates contact template