Forum Discussion

Danny_B855's avatar
Danny_B855
Copper Contributor
Jun 10, 2020

REST API Request Using Invoke-RestMethod

I'm having a devil of time formatting a request to a REST API.  I've tried twenty different ways of passing the request information in headers\body using Invoke-RestMethod. Here's what the request needs to look like:

 

PUT /api/v1/files/cliScript/incremental
Content-Type: application/octet-stream
<show system uptime>

<show system version>

 

I can't figure out how to pass these SHOW SYSTEM commands. Has anyone tackled something like this before?

 

2 Replies

No RepliesBe the first to reply

Resources