Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.data.createAsset
Stay organized with collections
Save and categorize content based on your preferences.
Creates an asset from a JSON value. To create an empty image collection or folder, pass in a "value" object with a "type" key whose value is one of ee.data.AssetType.* (i.e. "ImageCollection" or "Folder").
Returns a description of the saved asset, including a generated ID, or null if a callback is specified.
| Usage | Returns | ee.data.createAsset(value, path, force, properties, callback) | Object |
| Argument | Type | Details | value | Object | An object describing the asset to create. |
path | String, optional | An optional desired ID, including full path. |
force | Boolean, optional | Force overwrite. |
properties | Object, optional | The keys and values of the properties to set |
callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
[null,null,["Last updated 2023-10-06 UTC."],[],["The function `ee.data.createAsset` creates an asset from a JSON value. It accepts a `value` object describing the asset and an optional `path` for the asset ID. The `force` argument allows overwriting, and `properties` sets asset metadata. A `callback` enables asynchronous operation. Without a callback, it returns an object describing the asset, including the ID. An empty image collection or folder can be created by using the values from ee.data.AssetType.\n"]]