Moves a member account from a folder to another.

Debugging

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 MoveAccount

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

AccountId String Yes 12323344****

The ID of the account you want to move.

DestinationFolderId String Yes fd-bVaRIG****

The ID of the destination folder.

Response parameters

Parameter Type Example Description
RequestId String 9B34724D-54B0-4A51-B34D-4512372FE1BE

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=MoveAccount
&AccountId=12323344****
&DestinationFolderId=fd-bVaRIG****
&<Common request parameters>

Sample success responses

XML format

<MoveAccountResponse>
    <RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
</MoveAccountResponse>

JSON format

{
    "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}

Error codes

HTTP status code Error code Error message Description
400 MissingParameter.AccountId You must specify AccountId. The error message returned because the AccountId parameter is not specified.
400 InvalidParameter.AccountId The AccountId is invalid. The error message returned because the value of the AccountId parameter is invalid. Specify a 16-digit ID.
400 MissingParameter.DestinationFolderId You must specify DestinationFolderId. The error message returned because the DestinationFolderId parameter is not specified. Specify this parameter.
400 InvalidParameter.DestinationFolderId The DestinationFolderId is invalid. The error message returned because the value of the DestinationFolderId parameter is invalid. The value must start with r- followed by 6 characters or start with fd- followed by 10 characters. Valid characters are letters and digits.
404 EntityNotExists.Account This resource directory account does not exist. The error message returned because the member account does not exist. Create the member account first.
409 AccountTypeOrStatusMismatch You cannot perform the action on the member account. The error message returned because you cannot perform the operation on the member account.
404 EntityNotExists.ResourceDirectory The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. The error message returned because the Resource Directory feature is not enabled for the account. Enable the feature for the account.
404 EntityNotExists.Folder The resource directory folder does not exist. The error message returned because the folder does not exist. Create the folder first.

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