Create an import package

post

/AgentWeb/api/elementmanager/import/EMPackages

Creates an Element Manger import package

Request

Header Parameters
Body ()
Specify the name and base64 encoded string of the zip file to be imported
Root Schema : EMImportInfo
Type: object
Show Source
Example:
{
    "name":"<import-name>",
    "packageContent":"<zip-content-utf8>"
}
Nested Schema : attributes
Type: object
Show Source
Nested Schema : EMCustomImportAttributes
Type: object
Show Source
Nested Schema : EMAddInAttributes
Type: object
Show Source
Nested Schema : EMCustomScriptAttributes
Type: object
Show Source
Nested Schema : EMExtensionAttributes
Type: object
Show Source
Nested Schema : extensionSchemaFiles
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 initiate an import.

cURL Command Example

curl -X POST https://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages -H "USERSESSION: feihg98GnT7i" -H "API_VERSION: 1" -H "Content-Type: application/json" -d "{ \"name\": \"incident update\", \"packageContent\": \"package_converted_using_base64_encoder_tool\"}"

Request Body Example

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

{
  "name": "incident update",
  "packageContent": "package_converted_using_base64_encoder_tool"
}

Response Body Example

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

{
    "description": "Prepare package for import",
    "id": 100015,
    "href": "http://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100015"
}
Back to Top