Earth Engine is introducing
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. All noncommercial projects will need to select a quota tier by
April 27, 2026 or will use the Community Tier by default. Tier quotas will take effect for all projects (regardless of tier selection date) on
April 27, 2026.
Learn more.
ee.data.updateAsset
Stay organized with collections
Save and categorize content based on your preferences.
Updates an asset.
The authenticated user must be a writer or owner of the asset.
| Usage | Returns | ee.data.updateAsset(assetId, asset, updateFields, callback) | Object |
| Argument | Type | Details | assetId | String | The ID of the asset to update. |
asset | api.EarthEngineAsset | The updated version of the asset, containing only the new values of the fields to be updated. Only the
"start_time", "end_time", and "properties" fields can be updated. If a value is named in "updateMask", but is unset in "asset", then that value will be deleted from the asset. |
updateFields | List[String] | A list of the field names to update. This may contain:
"start_time" or "end_time" to update the corresponding timestamp,
"properties.PROPERTY_NAME" to update a given property, or
"properties" to update all properties. If the list is empty, all properties and both timestamps will be updated. |
callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-08 UTC.
[null,null,["Last updated 2026-01-08 UTC."],[],["This function updates an existing asset, requiring the user to be a writer or owner. It accepts the `assetId`, an `asset` object containing new field values, and a list of `updateFields`. Updatable fields include \"start_time\", \"end_time\", and \"properties\". Specifying a field in `updateFields` but not in `asset` deletes it. An empty `updateFields` list updates all properties and timestamps. The function returns an object, with an optional callback for asynchronous operation.\n"]]