Custom REST API Attachment POST

AJ2025
Tera Contributor

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

2 REPLIES 2

Medi C
Giga Sage

@AJ2025

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.


Thanks & Best regards,
Medi

AJ2025
Tera Contributor

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?