Examples of GET/DELETE/PATCH applications in REST

Post Reply
User avatar
macsir
Community Contributor
Posts: 614
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1, SSAS
Version: 9.5 - 10.2
Excel Version: 97 - 2013
Contact:

Examples of GET/DELETE/PATCH applications in REST

Post by macsir » Mon Jun 03, 2019 5:47 am

Hi, all
Not sure if anyone is interested in examples of GET/DELETE/PATCH applications in REST, but I would like to share

test.xlsx is an application under Tests folder,

To GET an application (just dump the binary file and rename it as xlsx, you can open it in Excel)

Code: Select all

https://URL/api/v1/Contents('Applications')/Contents('Tests')/Contents('test.xlsx.blob')/Document/Content
Same request to PATCH, but select a binary body (an updated file, say test1.xlsx) in the Postman and send

To Delete an application,

Code: Select all

https://URL/api/v1/Contents('Applications')/Contents('Tests')/Contents('test.xlsx.blob')
If anyone knows how to POST, please share it as well here.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/

Post Reply