public function b2_update_bucket($api_url, $account_id, $auth_token, $bucket_id, $bucket_type)
        {
            $call_url    = $api_url."/b2api/v1/b2_update_bucket";
            $account_id  = $account_id; // Obtained from your B2 account page
            $auth_token  = $auth_token; // Obtained from the b2_authorize_account call
            $bucket_id   = $bucket_id; // The ID of the bucket you want to update
            $bucket_type = $bucket_type; // Type to change to, either allPublic or allPrivate

            // Add POST fields
            $data = array(
                "accountId"  => $account_id,
                "bucketId"   => $bucket_id,
                "bucketType" => $bucket_type
            );

            // Add headers
            $headers = array(
                "Authorization: {$auth_token}"
            );

            $result = b2_call($call_url, $headers, $data);
            return $result; // Return the result
        }