Fix updatePageRule() method
This commit is contained in:
@@ -111,6 +111,7 @@ class PageRules implements API
|
||||
|
||||
public function updatePageRule(
|
||||
string $zoneID,
|
||||
string $ruleID,
|
||||
PageRulesTargets $target = null,
|
||||
PageRulesActions $actions = null,
|
||||
bool $active = null,
|
||||
@@ -134,8 +135,7 @@ class PageRules implements API
|
||||
$options['priority'] = $priority;
|
||||
}
|
||||
|
||||
|
||||
$query = $this->adapter->patch('zones/' . $zoneID . '/pagerules', $options);
|
||||
$query = $this->adapter->patch('zones/' . $zoneID . '/pagerules/' . $ruleID, $options);
|
||||
|
||||
$this->body = json_decode($query->getBody());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user