/{orgId}/admin/{itemId}/exportExports a new Workflow Manager configuration (.wmc) file based on the indicated item. This file can be used with the import endpoint to update other item configurations.
Configurations from Workflow items with a server that is on a more recent version will not import due to incompatibility. If includeOtherConfiguration is set to false, the exported file only includes the individual configuration. If includeOtherConfiguration is undefined, it defaults to true.
If includeOtherConfiguration is set to true, the configuration file includes the version, job templates, diagrams, roles, role-group associations, lookup tables, charts and queries, templates, and user settings of the indicated item. Encrypted settings must have a passphrase defined. If no passphrase is specified, encrypted keys will be exported without the values. The adminAdvanced privilege is required.
Body:
| Parameter | Description | Data Type | 
|---|---|---|
| jobTemplateIds | Optional. The job template(s) to be exported. If job template is exported, the associated diagram must be included to be exported. | Array | 
| diagramIds | Optional. The diagram(s) to be exported. If not defined, all diagrams are exported. If defined as empty, no diagram is exported. | Array | 
| includeOtherConfiguration | Optional. If true other configurations are exported including templates, User defined settings, shared searches, shared queries, email settings etc. | Boolean | 
| passphrase | Optional. If exporting encrypted user defined settings, define a passphrase. If no passphrase is specified, the keys for encrypted user defined settings will be exported without their values. Starting at 12.0, this property is deprecated. | String | 
Query parameters
| Name | Type | Required | 
|---|---|---|
| token | string¦null | 
Body parameters
Supported content types: application/json
Type: ExportSettings
Export settings
| Name | Type | Required | 
|---|---|---|
| job | [string]¦null | |
| diagram | [string]¦null | |
| include | boolean¦null | |
| passphrase | string¦null | 
Path parameters
| Name | Type | Required | 
|---|---|---|
| org | string | |
| item | string | 
Response status
| Status | Meaning | Description | Schema | 
|---|---|---|---|
| 200 | OK | The exported configuration | string(binary) | 
| 400 | Bad Request | error | WorkflowJsonExceptionDTO | 
Examples
Request
# You can also use wget
curl -X POST /{orgId}/admin/{itemId}/export \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  --data '{"jobTemplateIds":["string"],"diagramIds":["string"],"includeOtherConfiguration":true,"passphrase":"string"}'Response
"string"