How to export and import a single object using sp-config

Below is an example of how to export a single rule from a tenant and import a single rule to another tenant.

Say for instance we want to export a rule named Services Standard IdentityNow BeforeProvisioning Rule.

Find the rule name and start the export process!

POST

{{api-url}}/beta/sp-config/export

Body:

{
    "description": "Export from OK's sandbox tenant v1.7.1-Services Standard Before Provisioningg rule only",
    "excludeTypes": [
        "TRIGGER_SUBSCRIPTION",
        "TRANSFORM",
        "SOURCE",
        "IDENTITY_PROFILE"
    ],
    "includeTypes": [
        "RULE"
    ],
    "objectOptions": {
        "RULE": {
            "includedIds": [],
            "includedNames": [
                "Services Standard IdentityNow BeforeProvisioning Rule"
            ]
        }
    }
}

e.g.

Note: If we see abovwe the includeTypes and objectObtions is RULE, same can be applied for a ‘SOURCE’ or a ‘TRANSFORM’

Thereafter to obtain the json for the rule:

GET

{{api-url}}/beta/sp-config/export/{jobIdfrompreviousAPIcall}/download

You can then save the JSON rule as per below attachment

, ready to be imported to another tenant( e.g. migrating a cloud rule that’s been approved as part of the SailPoint Rule Review process…from sandbox to production)

To import the above rule to your tenant:

POST

{{api-url}}/beta/sp-config/import

Body:

form-data

KEY = data

VALUE = /path to your file.json

e.g.

We can check all went good:

GET

{{api-url}}/beta/sp-config/import/f17d3bb2-dcef-4ba1-b4c2-e3da34d05e12/download

e.g.

you can then confirm the rule exists in your tenant!

How to export and import a single ‘source’ including the related rules on a source:
TOBEUPDATED?

See the following API for further details:

Example POSTMAN collection: