Custom REST API Attachment POST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2025 03:08 PM
We have a custom API Wrapper which has its own Attachment POST method. It does not seem to be using the system property that controls what kind of file types (extensions) you can upload during a API call.
The default Attachment API of ServiceNow still works as expected.
What could be the cause?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2025 03:20 PM
Since it is a custom API, you would need to take care of file extensions. The existing system property would work for the OOTB Attachment API only.
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2025 03:23 PM
Thanks Medi, so basically are you suggesting we create a separate system property or utilise an existing one and refer it in a script of this custom API?