REST API - importResources

The table summarizes the REST API - importResources.

Request

Format
POST <baseurl>/resources/import
Body (required) Uses the output from exportResources operation as the input to this operation.

Response

JSON Returns a 200 OK response header with an empty response body.
XML Returns a 200 OK response header with an empty response body.

Example

Request
POST <baseurl>/resources/import
Request Body
{
        "xml-fragment":
        {
            "@model-version": "3",
            "container":
            {
                "@id": "1",
                "@name": "XYZ Insurance",
                "@description": "",
                "@last-accessed": "2015-11-05T10:42:16.560Z",
                "@active": "true",
                "@entity-count": "0",
                "primary-ldap":
                {
                    "@id": "1",
                    "@guid": "49253153-DCC4-4573-AA37-6F4EC9D96254",
                    "@ldap-alias": "easyAs",
                    "@ldap-search-string": "(ObjectClass=person)",
                    "@display-name-attributes": "ou"
                }
            },
            "resource":
            [
                {
                    "@id": "5D244395-DF6F-4B42-A2B0-D3BE09B77015",
                    "@name": "Motor CSR",
                    "@label": "Motor CSR",
                    "@ldapcontainer": "XYZ Insurance",
                    "@ldapalias": "easyAs",
                    "@ldapdn": "OU=John Eustace, OU=Swindon, OU=AllEmployees, O=easyAsInsurance"
                },
                {
                    "@id": "EDA9CDEA-F024-4215-A54B-83846370A12D",
                    "@name": "Call Centre CSR",
                    "@label": "Call Centre CSR",
                    "@ldapcontainer": "XYZ Insurance",
                    "@ldapalias": "easyAs",
                    "@ldapdn": "OU=Clint Hill, OU=Swindon, OU=AllEmployees, O=easyAsInsurance"
                },
                {
                    "@id": "FD6DCC8B-FE61-4A61-85AD-E4A4D4ECE695",
                    "@name": "Motor Manager",
                    "@label": "Motor Manager",
                    "@ldapcontainer": "XYZ Insurance",
                    "@ldapalias": "easyAs",
                    "@ldapdn": "OU=Leon Court, OU=Paris, OU=AllEmployees, O=easyAsInsurance"
                },
                {
                    "@id": "18B6FF36-C57D-4BFE-88A8-30DB4D670F72",
                    "@name": "Call Centre Manager",
                    "@label": "Call Centre Manager",
                    "@ldapcontainer": "XYZ Insurance",
                    "@ldapalias": "easyAs",
                    "@ldapdn": "OU=Jon Parkin, OU=Paris, OU=AllEmployees, O=easyAsInsurance"
                }
            ]
        }
    }