request_method === 'PUT') { # Edit the portal settings of the platform $API_portalsettings->checkPermissions('admin-portalsettings', 'RW'); $requiredFields = [ 'portal_uuid' => ['type' => 'uuid'], 'portal_name' => ['type' => 'string'], 'portal_provider_name' => ['type' => 'string'], 'admin_auth_methods' => ['type' => 'string'] ]; $API_portalsettings->validateData($requiredFields); # Update the permission $API_portalsettings->updatePortalSettings(); }