Method: projects.assets.move
HTTP request
POST https://earthengine.googleapis.com/v1alpha/{sourceName=projects/*/assets/**}:move
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
sourceName |
string
The name of the asset to move. name is of the format "projects/*/assets/**" (e.g., "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). All user-owned assets are under the project "earthengine-legacy" (e.g., "projects/earthengine-legacy/assets/users/foo/bar"). All other assets are under the project "earthengine-public" (e.g., "projects/earthengine-public/assets/LANDSAT").
Authorization requires the following IAM permission on the specified resource sourceName :
earthengine.assets.delete
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"destinationName": string
} |
Fields |
destinationName |
string
The destination name to which to move the asset. name is of the format "projects/*/assets/**" (e.g., "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). All user-owned assets are under the project "earthengine-legacy" (e.g., "projects/earthengine-legacy/assets/users/foo/bar"). All other assets are under the project "earthengine-public" (e.g., "projects/earthengine-public/assets/LANDSAT").
Authorization requires the following IAM permission on the specified resource destinationName :
earthengine.assets.create
|
Response body
If successful, the response body contains an 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."],[[["Moves an Earth Engine asset to a new destination within your projects."],["Requires specifying the source asset's name and the desired destination name using the format \"projects/*/assets/**\"."],["Needs appropriate IAM permissions for both deleting the source asset and creating it at the destination."],["Utilizes a POST request to the Earth Engine API, including the source and destination names in the request."],["Returns the EarthEngineAsset details upon successful completion of the move operation."]]],["This outlines the process for moving an asset using a POST request to the specified URL. The request requires a `sourceName` parameter, indicating the current asset location, and a `destinationName` within the request body, specifying the new location. `sourceName` requires `earthengine.assets.delete` permission, while `destinationName` needs `earthengine.assets.create` permission. Assets are located under \"earthengine-legacy\" for users or \"earthengine-public.\" Successful moves return an `EarthEngineAsset`. OAuth scopes `earthengine` or `cloud-platform` are required.\n"]]