src/Services/TemplateService.php
public function update($id, Template $Template)
    {
        $response = $this->mailjet->put(Resources::$Template,
            ['id' => $id, 'body' => $Template->format()]);
        if (!$response->success()) {
            $this->throwError("TemplateService:update() failed", $response);
        }

        return $response->getData();
    }
public function update($id, Template $Template)
    {
        $response = $this->mailjet->put(Resources::$Template,
            ['id' => $id, 'body' => $Template->format()]);
        if (!$response->success()) {
            $this->throwError("TemplateService:update() failed", $response);
        }

        return $response->getData();
    }
public function update ( $ id , Template $ Template ) { $ response = $ this -> mailjet -> put ( Resources :: $ Template , [ 'id' => $ id , 'body' => $ Template -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "TemplateService:update() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Update one specific template resource with a PUT request, providing the template's ID value
@param int $id
@param Template $Template
Update one specific template resource with a PUT request providing the template s ID value