- 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
06-12-2019 03:59 PM
The previous post below is a good reference:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 06:07 AM
Thanks for pointing me in the right direction. I see that in that example, they are using the incident table. Do you know what table I should use to have my attachment be attached to my requested service catalog item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 07:34 AM
To add onto this, I'm hoping to add the attachment in my Scripted API, while I'm filling in the other variables for the catalog item. Is this something that can be done?
- 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.