This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

API - Sample Add Attachment via Powershell?

I'm very new to Invoke-RestMethod and have been successful at pulling the data that I want.   Thanks to a few posts I've seen here. 

But

One challenge that seems to stump me is how to add an attachment to an incident via powershell.  I see the api docs have a curl example.  I have not seen any PS examples and my poor brain is unable to convert the syntax of curl to Invoke-RestMethod.

Parents Reply Children
  • Thanks Mitch, 

    I am able to do everything I want with the API except posting an attachment.

    I looked at your comments and google hunted some other examples of Invoke-RestMethod posting.  Unfortunately none of them seem to work for SWSD API.  So I'm clearly missing a key piece of the puzzle. 

    I did ask SWSD support for help but their first response wasn't very helpful.