if (($found == false) and ($this->_params['rid'] != '')) {
                // validate input
                if (!preg_match('/^[0-9]{1,6}$/', $this->_params['rid'])) {
                    $this->showApiError(201);