Changing the 'maxSampleCount' of an image service from a mosaic dataset at the REST endpoint does not affect the number of results returned by the 'Get Samples' operation.
This issue is not encountered when the image service does not come from a mosaic dataset (For example, a single .tif file published as an image service).