Updated on 2025-09-16 GMT+08:00

Changing the Default Migration Project

Function

This API is used to change the default migration project. If you change the default migration project, the source server will be registered under the changed project.

Calling Method

For details, see Calling APIs.

URI

PUT /v3/migprojects/{mig_project_id}/default

Table 1 Path parameter

Parameter

Mandatory

Type

Description

mig_project_id

Yes

String

The migration project ID.

Minimum length: 0 characters

Maximum length: 255 characters

Request

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

X-Auth-Token

The user token.

The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Minimum length: 1 character

Maximum length: 16,384 characters

Response

Status code: 200

The default migration project was changed.

None

Example Request

This example changes the default migration project to 137224b7-8d7c-4919-b33e-ed159778xxx.

PUT https://{endpoint}/v3/migprojects/137224b7-8d7c-4919-b33e-ed159778xxxx/default

Example Response

None

Status Codes

Status Code

Description

200

The default migration project was changed.

Error Codes

For details, see Error Codes.