latestOpenAPI 3.0.32026-08-109359194.9 KB

112399a67ebb

Modules

Restore a Deleted Module

Restores a soft-deleted module.

Authorization Required:

  • Application Create
post/modules/{moduleId}/restore

Path parameters

moduleIdstring required

ID of module to restore

Request body

shareToEnvironmentboolean

Whether to share the module to the environment

NOTE: If specified, request cannot include workspaceId or applicationId.

workspaceIdstring

Workspace ID module will be shared with

Examples

Restore and share to workspace ID: 6053e968afcc293120198785

Request

 {
   "workspaceId": "6053e968afcc293120198785",
 }

NOTE: If applicationId also specified, will connect the module to the application (the application must be part of the workspace)

Restore and connect to application 6078e938d87660707f31c624 in workspace 6053e968afcc293120198785

Request

 {
   "workspaceId": "6053e968afcc293120198785",
   "applicationId": "6078e938d87660707f31c624"
 }
applicationIdstring

Application ID to which the module will be restored (will not share the module)

Example

Request

 {
   "applicationId": "6078e938d87660707f31c624"
 }

Response

Successfully Restored