Skip to main content

ON PREMISES SOLUTIONS

importPolicies

This method imports all given policies for current user.

Parameters

Parameter

Type

Optional

Description

compatVersion

String

No

Database version from where policies were exported

records

Array

No

Policies array to be imported

Return value

This method returns a Boolean which is True when the policies were imported successfully.

Example

Request:

  {
       "params": {
           "records" : [
               [
                     "name" : "policy",
                     "service" : 3,
                     "uiSettings": [ ... ]
               ],
               [
                     "name" : "policy",
                     "service" : 3,
                     "uiSettings": [ ... ]
               ],
               ],
                     "compatVersion": "021-001-001"},
                     "jsonrpc": "2.0",
                     "method": "importPolicies",
                     "id": "98409cc1-93cc-415a-9f77-1d4f681000b3"
  }

Response:

  {
       "id": "47519d2d-92e0-4a1f-b06d-aa458e80f610",
       "jsonrpc":"2.0",
       "result": {'success' => true}
  }