POST method for importing legacy solutions

Draft comment:
This topic is shared by BAW, CP4BA. Last updated on 2025-03-13 12:15
This POST method is used to import legacy case solutions.

URI

/CASEREST/v1/solution/import

Table 1. Form parameter for the POST method
Name Type Required Description
zipFile File Yes

The compressed file, which contains the solution package that is to be imported.

projectAreaName String Yes Name of the project area where the solution needs to be imported.
overwrite String Optional

Value to indicate whether the solution needs to be overwritten or not.

serviceDataMapFile File Optional The service datamap XML file.
principalDataMapFile File Optional The principal datamap XML file.
objectStoreDataMapFile File Optional The object store datamap XML file.

POST curl method request

Example:
 curl -X 'POST' --user <username>:<password> 'https://example.com:9443/CaseManager/CASEREST/v1/solution/import' -H 'accept: application/json' -H 'Content-Type:
 multipart/form-data' -F 'zipFile=@C:\SolutionCB1_solution.zip;type=application/x-zip-compressed' -F 'projectAreaName=dev_env_connection_definition' --insecure

POST method response


{"result":"success","SolutionPrefix":"SCB1","SolutionName":"SolutionCB1"}