REST API to redeploy mar

Document ID : KB000104149
Last Modified Date : 04/07/2018
Show Technical Document Details
Is there a REST API to enable redeploying a mar? The api for deploying mar file can be found.
The REST API named "post /.../.../actions/deployMar" for only first deployment and the REST API does not include the action for re-deploying. When trying to re-deploy wi,th  "post /.../.../actions/deployMar" to the environment that .mar file is already deployed, then the message like "... was already existed" appears.
Then to realize the re-deployment needs to follow these steps:
  1. use delete action for the certain .mar file which already deployed
  2. deploy the .mar file again