CloudFlare\Zone::edit_plan PHP Method

edit_plan() public method

Edit the desired plan for the zone (permission needed: #zone:edit)
public edit_plan ( string $zone_identifier, object $plan )
$zone_identifier string API item identifier tag
$plan object The desired plan for the zone. Changing this value will create/cancel associated subscriptions. To view available plans for this zone, see Zone Plans
    public function edit_plan($zone_identifier, $plan)
    {
        $data = ['plan' => $plan];
        return $this->patch('zones/' . $zone_identifier, $data);
    }