Import or rollback a package

patch

/AgentWeb/api/elementmanager/import/EMPackages

Imports or rollbacks an Element Manager package

Request

Header Parameters
Body ()
Specify the action and id
Root Schema : EMImportPatchInfo
Type: object
Show Source
Example:
{
    "action":"import/rollback",
    "id":"import-id",
    "permissions":[
        {
            "elementIds":[
                "576"
            ],
            "profilePermissions":[
                {
                    "profileIds":[
                        "205"
                    ],
                    "interfaceIds":[
                        "1",
                        "2"
                    ]
                }
            ]
        },
        {
            "elementIds":[
                "577",
                "450"
            ],
            "profilePermissions":[
                {
                    "profileIds":[
                        "205",
                        "206"
                    ],
                    "permission":"edit"
                }
            ]
        },
        {
            "elementIds":[
                "578"
            ],
            "interfacePermission":[
                "1",
                "2"
            ]
        }
    ],
    "enabledBusinessRules":[
        "100003",
        "100004"
    ]
}
Nested Schema : enabledBusinessRules
Type: array
If the attribute is present, only the business rules with the specified element ids will be enabled in edit mode after import. If not present, package defaults shall be applied.
Show Source
Nested Schema : excludedItems
Type: array
Show Source
Nested Schema : permissions
Type: array
Permission values for items
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 : EMPermissions
Type: object
Show Source
Nested Schema : elementIds
Type: array
Show Source
Nested Schema : interfacePermission
Type: array
Show Source
Nested Schema : profilePermission
Type: array
Show Source
Nested Schema : EMProfilePermissions
Type: object
Show Source
Nested Schema : interfaceIds
Type: array
Show Source
Nested Schema : EMPermission
Type: object
Show Source
Nested Schema : profileIds
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

Status of import
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 import a package.

cURL Command Example

curl -X PATCH https://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages -H "USERSESSION: feihg98GnT7i" -H "API_VERSION: 1" -H "Content-Type: application/json" -d "{ \"action\": \"import\", \"id\": \"100015\" }"

Request Body Example

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

{
  "action": "import",
  "id": "100015"
}

Response Body Example

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

{
    "description": "Import the package",
    "id": 100015,
    "name": "incident update",
    "href": "http://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100015"
}
Back to Top