Migrates one or more resources from an application to another application. The application administrator can directly migrate resources between applications. RAM users or RAM roles must obtain the write permissions on the source and destination applications before they can migrate resources between the applications. Multiple resources can be migrated at a time.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes MoveAppResource

The operation that you want to perform. Set the value to MoveAppResource.

ResourceIds String Yes ****,****

The ID of the resource. You can specify a maximum of 20 IDs at a time. Separate them with commas (,).

ResourceType String Yes video

The type of the resource. Valid values:

  • video
  • image
  • attached
TargetAppId String Yes app-****

The ID of the application to which resources are migrated. Default value: app-1000000. For more information, see Overview.

Response parameters

Parameter Type Example Description
FailedResourceIds List ****

The ID of the resource that failed to be migrated.

NonExistResourceIds List ****

The ID of the resource that was not found.

RequestId String 25818875-5F78-4A13-BEF6-****

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "25818875-5F78-4A13-BEF6-****",

Error codes

For a list of error codes, visit the API Error Center.

Common errors

The following table describes the common errors that this operation can return.

Error code

Error message

HTTP status code



The app service is not open.


The error message returned because the multi-application service has not been activated.


Invalid app permission to operate on the specified resource.


The error message returned because you are not authorized to manage resources under the destination application.