Closed ashit-rath closed 5 months ago
/api/v1/moduleinstances/{sourceModuleInstanceId}/copy
{
"destinationContextId": "<PAGE_ID|MODUL_ID>",
"destinationContextType" : "<PAGE|MODULE>",
"name": "<Name>"
}
/api/v1/moduleinstances/{sourceModuleInstanceId}/move
{
"destinationContextId": "<PAGE_ID|MODUL_ID>",
"destinationContextType" : "<PAGE|MODULE>",
"name": "<Name>"
}
@ankitakinger I have updated the API spec in description of this issue according to our discussion. cc: @ashit-rath
Copy Module Instance
To copy a module instance to any page we will use the same endpoint as to create a module instance
Endpoint:
/api/v1/moduleinstances/{sourceModuleInstanceId}/copy
Response:
Move Module Instance
Endpoint:
POST /api/v1/moduleinstances/{sourceModuleInstanceId}/move
Request Body:
Sample Response: