- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2019 11:39 AM
I have created a REST API to add items and to cart and configure variables using the Cart API. I am wondering if it is possible to attach an attachment to an item via this API. On the service catalog, I have added a variable that uses a UI page to add an attachment to the item, but I am wondering if it is possible to add an attachment to an item using an API. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2019 06:45 AM
I seem to have figured it out. While I wasn't able to directly add the attachment in my scripted API, I was able to return the RITM sys_id and use the Attachment REST api to post the attachment to that item in the sn_req_item table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2020 06:26 AM
Hi
Can you please elaborate on how you achieved this?
I have a requirement where i need to place an order for a catalog item using scripted rest api...
I am passing the values of catalog item variables as json through postman and a ritm is generated for same(i.e: order is successfully placed).
However there is also an attachment that is to be sent while placing an order. This is'nt working for me.
Can you please let me know your steps. Seems my requirement is similar to yours.
TIA!
