ee.data.renameAsset

Stay organized with collections Save and categorize content based on your preferences.

Renames the asset from sourceId to destinationId.

UsageReturns
ee.data.renameAsset(sourceId, destinationId, callback)
ArgumentTypeDetails
sourceIdStringThe ID of the asset to rename.
destinationIdStringThe new ID of the asset.
callbackFunction, optionalAn optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object and an error message, if any.