# ee.data.renameAsset

<br />

Renames the asset from sourceId to destinationId.

<br />

| Usage | Returns |
|---|---|
| `ee.data.renameAsset(sourceId, destinationId, *callback*)` |   |

| Argument | Type | Details |
|---|---|---|
| `sourceId` | String | The ID of the asset to rename. |
| `destinationId` | String | The new ID of the asset. |
| `callback` | Function, 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. |