Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Sample API

The following is a sample invocation request when the PaCE API is executed.

var request = {"documentIds":
         [{"table":"sn_cdm_deployable","sysId":"d1be8f5e87d80110eec7dbdd3fbb357d"}],"service":"CDM","category":"CDM","data":{"snapshotId":"2bcec7de87d80110eec7dbdd3fbb3529"},"options":{"verboseResponse":true,"logLevel":"debug","type":"standard","failFast":false, "executionTag":"cdm"}}


         try {



            var api = new sn_pace.InvocationAPI();



            var execResponse = api.execute(request);



            gs.info(" Got execution response:\n " +  JSON.stringify(execResponse,null,4));



         } catch (err) {



            //var errJSON = JSON.parse(err);



            //gs.info(errJSON.code);



            gs.info(" Error message is:" + err + "\n stack:" +  err.stack);



            // gs.info(" Error is:" + err);



         }