Php 如何更新模板MailChimp。错误400

Php 如何更新模板MailChimp。错误400,php,request,mailchimp,Php,Request,Mailchimp,我想更新以前创建的模板。但这给了我错误。。 导致400错误请求“标题”:“无效资源”。 我的代码 $client->setConfig([ 'apiKey'=>env('MAILCHIMP_apiKey'), “服务器”=>“us2”, ]); $response3=$client->templates->updateTemplate(“403212”[ “名称”=>“新模板”, “html”=>“已更新!”, ]); $client->setConfig([ 'apiKey'

我想更新以前创建的模板。但这给了我错误。。 导致
400错误请求
“标题”:“无效资源”。 我的代码

$client->setConfig([
'apiKey'=>env('MAILCHIMP_apiKey'),
“服务器”=>“us2”,
]); 
$response3=$client->templates->updateTemplate(“403212”[
“名称”=>“新模板”,
“html”=>“已更新!

”, ]);
$client->setConfig([
    'apiKey' => env('MAILCHIMP_APIKEY'),
    'server' => 'us2',
]); 
$response3 = $client->templates->updateTemplate("403212", [
    "name" => "newTemplate",
    "html" => "<p>Updated!</p>",
]);