This example creates a new object list and adds table MyDatabase.MyTable to it.
CALL Statement (Create Object List)
CALL TDSTATS.createobjectlistjson('{"ObjectListName":"MyObjList"}',jOut);
Result:
jOut
---------------------------------------------------------------------------
{"ObjectListId":1}
CALL Statement (Add Table)
CALL TDSTATS.AddObjectListEntryJSON('{"ObjectListName":"MyObjList","DatabaseName":"MyDatabase","ObjectName":"MyTable" }',jOut);