Examples of GET/DELETE/PATCH applications in REST

Post Reply
User avatar
macsir
MVP
Posts: 782
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Examples of GET/DELETE/PATCH applications in REST

Post by macsir »

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/
yyround
Posts: 27
Joined: Tue Apr 18, 2017 1:20 am
OLAP Product: TM1
Version: PA2.0.8
Excel Version: MS 2016

Re: Examples of GET/DELETE/PATCH applications in REST

Post by yyround »

Thanks for sharing.

Looking forward to more of the RESTAPI tips:).

Regards
YY
Post Reply