I would like to save only the “slice” without the “datasource”
Seems getReport() API call is the best choice for such case – https://www.webdatarocks.com/doc/getreport/.