Hi Simon, I know this behaviour too. In the first step, after the creation of the datastore and the layer I download the xml with the coverage information and change the name (and other information) manually. Then I upload the modified xml in a second step (be careful to update the correct ressource!). Of course you don't have to upload the xml with the complete information, it could also be tailored to contain just the information you want to update. Cheers, Niko
Am Di., 16. März 2021 um 08:38 Uhr schrieb Simon Crown < simonleoncr...@gmail.com>: > I am using the REST API to create an ImageMosaic. The data resides in a > file directory. By default it seems that the layer name is the name of this > directory. Is there anyway to change this name? > > I have tried using the REST layers PUT command with the following body > > { > "layer" : { > "name" : "newname" > } > } > > The server returns 200 but does nothing. > > I am using GeoServer 2.18.0 > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users