Create an export package

post

/AgentWeb/api/elementmanager/export/EMPackages

Creates an Element Manger export package

Request

Header Parameters
Body ()
For new exports, specify the name and id of items to be exported. For excluding items from exported packages, specify export id and items to be deleted
Root Schema : EMPackage
Type: object
Show Source
Example:
{
    "name":"sample",
    "desc":"description",
    "items":[
        {
            "id":"0",
            "type":"Workspace"
        }
    ]
}
Nested Schema : excludedItems
Type: array
Array of items to be excluded in exclude request
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : ExcludedItem
Type: object
Show Source
  • Id of the item to be removed, obtained from the GET package status API
  • Allowed Values: [ "Report", "Workspace", "DesktopAddIn", "BrowserExtension", "NavigationSet", "CustomObject", "SystemAttribute", "StandardText", "Variable", "ObjectEventHandler", "ConfigurationSetting", "MessageBase", "BusinessRule", "BusinessRuleVariable", "WorkspaceScript", "ExternalObject", "Image", "WorkflowImage", "CustomScript" ]
Nested Schema : EMItem
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Status of export
Body ()
Root Schema : EMStatus
Type: object
Show Source
Nested Schema : PublicApiExceptionResponse
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : EMPackageStatus
Type: object
Show Source
Nested Schema : EMProcessedItem
Type: object
Show Source
Nested Schema : EMCodeDescPair
Type: object
Show Source
Back to Top

Examples

The following example shows how to create an export package.

cURL Command Example

curl -X POST https://mysite.example.com/AgentWeb/api/elementmanager/export/EMPackages -H "USERSESSION: feihg98GnT7i" -H "API_VERSION: 1" -H "Content-Type: application/json" -d "{  \"name\": \"Test Em ext\", \"desc\": \"Export testing em extension\", \"items\": [ { \"id\": 101810, \"type\": \"Report\" } ] }"

Request Body Example

The following shows an example of the request body in JSON format.

{
  "name": "Test Em ext",
  "desc": "Export testing em extension",
  "items": [
    {
      "id": 101810,
      "type": "Report"
    }
  ]
}

Response Body Example

The following shows an example of the response body in JSON format.

{
    "description": "Prepare package for export",
    "id": 100012,
    "name": "Test Em ext",
    "status": {
        "code": "1",
        "description": "Export prepare start"
    },
    "href": "http://mysite.example.com/AgentWeb/api/elementmanager/export/EMPackages/100012"
}
Back to Top