Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
Method: projects.locations.assets.create
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://earthengine.googleapis.com/v1alpha/{parent=projects/*/locations/*}/assets
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent of the asset collection (e.g., "projects/*").
Authorization requires the following IAM permission on the specified resource parent :
earthengine.assets.create
|
Query parameters
Parameters |
assetId |
string
The ID of the asset to create. Equivalent to name but without the "projects/*/assets" (e.g., users/[USER]/[ASSET]).
|
overwrite |
boolean
Whether to allow overwriting an image asset.
|
Request body
The request body contains an instance of EarthEngineAsset
.
Response body
If successful, the response body contains a newly created instance of EarthEngineAsset
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
For more information, see the OAuth 2.0 Overview.
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 2025-03-06 UTC.
[null,null,["Last updated 2025-03-06 UTC."],[[["\u003cp\u003eCreates an Earth Engine asset with the specified type (FOLDER, IMAGE, or IMAGE_COLLECTION) and properties.\u003c/p\u003e\n"],["\u003cp\u003eRequires appropriate IAM permissions to create assets within the specified parent project or location.\u003c/p\u003e\n"],["\u003cp\u003eAllows for setting a custom asset ID and optionally overwriting existing image assets.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an EarthEngineAsset object with asset details.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication is required using either the \u003ccode\u003eearthengine\u003c/code\u003e or \u003ccode\u003ecloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This describes how to create assets within a project using a POST request to the Earth Engine API. The `parent` path parameter is required, and asset type determines specifiable fields. `FOLDER` assets have no fields, while `IMAGE` and `IMAGE_COLLECTION` are limited to `startTime`, `endTime`, and `properties`; with images also allowing for `cloudStorageLocation`. Optional query parameters `assetId` and `overwrite` are available. The request body uses `EarthEngineAsset`, and successful creation returns a new `EarthEngineAsset` instance. Requires OAuth scopes for authorization.\n"],null,["# Method: projects.locations.assets.create\n\nCreates an asset.\n\nThe following asset types are createable: \\* `FOLDER`: No fields in `asset` may be specified. \\* `IMAGE`: To create a COG-backed asset, use `image.importExternal` instead. See \u003chttps://developers.google.com/earth-engine/Earth_Engine_asset_from_cloud_geotiff\u003e for more details. \\* `IMAGE_COLLECTION`: Only the fields `startTime`, `endTime`, and `properties` may be specified.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1alpha/{parent=projects/*/locations/*}/assets`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent of the asset collection (e.g., \"projects/\\*\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `earthengine.assets.create` |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `assetId` | `string` The ID of the asset to create. Equivalent to name but without the \"projects/\\*/assets\" (e.g., users/\\[USER\\]/\\[ASSET\\]). |\n| `overwrite` | `boolean` Whether to allow overwriting an image asset. |\n\n### Request body\n\nThe request body contains an instance of [EarthEngineAsset](/earth-engine/reference/rest/v1alpha/projects.assets#EarthEngineAsset).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [EarthEngineAsset](/earth-engine/reference/rest/v1alpha/projects.assets#EarthEngineAsset).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/earthengine`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]