Determine whether archiving is enabled

Before you can use any of the archiving endpoints, you must have archiving enabled in PolicyCenter. See Data Archiving for more information.

If you attempt to access one of the archiving endpoints on a policy when archiving has not been enabled you receive the following error:

{
    "status": 400,
    "errorCode": "gw.api.modules.rest.framework.v1.exceptions.OperationNotCurrentlyAllowedException",
    "userMessage": "The operation is not currently allowed for this resource",
    "details": [
        {
            "message": "Cannot perform this action because Archiving is not enabled"
        }
    ]
}

If you attempt to access the bulk-policy-archive-retrievals endpoint when archiving is disabled you receive a “404 no resource found” error.