/{orgId}/admin/{itemId}/import
Imports a new Workflow Manager configuration from the selected .wmc file. Workflow Manager configurations can be imported to items at the same or higher version as the configuration. Importing a newer configuration into an older item version is not supported. It is recommended to back up configurations before importing. The passphrase specified during export for encrypted settings must be included. If no passphrase is specified, then only encrypted keys will be imported without the value. If an invalid passphrase is specified, the import will fail. Importing will fail if any jobs exist in the destination item. Excess scheduled tasks will be dropped based on the portal limit. The adminAdvanced privilege is required.
Body parameters
Supported content types: multipart/form-data
Name | Type | Required | Description |
---|---|---|---|
token | string | ||
file | string(binary) | The configuration file to be imported into the specified item | |
passphrase | string |
Path parameters
Name | Type | Required |
---|---|---|
org | string | |
item | string |
Response status
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | success | SuccessResponse |
400 | Bad Request | error | WorkflowExceptionDTO |
Examples
Request
# You can also use wget
curl -X POST /{orgId}/admin/{itemId}/import \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
-F token=string \
-F file=string \
-F passphrase=string
Response
{
"success": true,
"message": "string",
"name": "UnableToDetermineHostingServer"
}