ee.data.createAsset

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.

UsageReturns
ee.data.createAsset(value, path, force, properties, callback)Object
ArgumentTypeDetails
valueObjectAn object describing the asset to create.
pathString, optionalAn optional desired ID, including full path.
forceBoolean, optionalForce overwrite.
propertiesObject, optionalThe keys and values of the properties to set
callbackFunction, optionalAn optional callback. If not supplied, the call is made synchronously.