'staff_2', 'requestData' => [ 'id' => [ 'validation' => DataValidator::dataStoreId('customresponse'), 'error' => ERRORS::INVALID_NAME ] ] ]; } public function handler() { $customResponse = CustomResponse::getDataStore(Controller::request('id')); if (Controller::request('content')) { $customResponse->content = Controller::request('content'); } if (Controller::request('language')) { $customResponse->language = Controller::request('language'); } if (Controller::request('name')) { $customResponse->name = Controller::request('name'); } $customResponse->store(); Response::respondSuccess(); } }