'staff_2', 'requestData' => [ 'id' => [ 'validation' => DataValidator::dataStoreId('customresponse'), 'error' => ERRORS::INVALID_NAME ] ] ]; } public function handler() { $customResponse = CustomResponse::getDataStore(Controller::request('id')); $customResponse->delete(); Log::createLog('DELETE_CUSTOM_RESPONSE', null); Response::respondSuccess(); } }