ee.data.renameAsset

Renames the asset from sourceId to destinationId.

UsageReturns
ee.data.renameAsset(sourceId, destinationId, callback)
ArgumentTypeDetails
sourceIdString

The ID of the asset to rename.

destinationIdString

The new ID of the asset.

callbackFunction, optional

An optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object and an error message, if any.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!