33.4.1.2 Response JSON Parameters

This section provides the list of parameters in the JSON Response.

Table 33-12 POST JSON Response

Name Type Description
migrationCode STRING Migration code of the object.
errorMessage STRING

Details of the export process.

For example: Outline Save Failed for migrationCode.

statusCode STRING It indicates the status code of the service. For example: OUTLINE_SAVE_FAILED.
status STRING

Status of the migration

  • Success
  • Failed

Table 33-13 Possible Status Codes

Status Code Description
Success:200 Success
Error:400 Invalid inputs
Error:500 Internal Server error

Response JSON Samples

Success:200

{

    ""migrationCode":"ABCcopy"

    "errorMessage": "",

    "statusCode": "EXPORT_OUTLINE_SAVED",

    "status": "SUCCESS"

}  

Error:400

{

    ""migrationCode":"ABCcopy"

    "errorMessage": "New Migration code already exists",

    "statusCode": "INVALID_INPUT",

    "status": "FAILED"

}

Error :500
{ 
   "errorMessage": "Outline Save Failed for migrationCode",  

   "statusCode": "OUTLINE_SAVE_FAILED", 

   "status": "FAILED",

   migrationCode":"migrationCode" //migrationcode passed

}
List of error messages for Invalid_input statuscode:
  • Source Migration code not received in input request.
  • Source Migration Code doesn't exist.
  • New Migration code not received in input request.
  • New Migration code already exists.
  • New Migration code length should be between 3 and 30. Alphanumeric with hyphen and underscore only are allowed. No special characters.
  • Input Validation Failed.
  • The existing migration code is in SAVED/FAILED status, can't copy.